diff --git a/tests/Twig/Runtime/IconRuntimeTest.php b/tests/Twig/Runtime/IconRuntimeTest.php index 53f00ed..6b7b68c 100644 --- a/tests/Twig/Runtime/IconRuntimeTest.php +++ b/tests/Twig/Runtime/IconRuntimeTest.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace Pcm\IconBundle\Tests\Twig\Functions; +use Pcm\IconBundle\DependencyInjection\Configuration; use Pcm\IconBundle\Exception\ColourNotFound; use Pcm\IconBundle\Exception\IconNotFound; use Pcm\IconBundle\Twig\Runtime\IconRuntime; @@ -37,6 +38,7 @@ class IconRuntimeTest extends TestCase protected function setUp(): void { $this->icon = new IconRuntime( + defaultOptions: ['size' => Configuration::DEFAULT_SIZE, 'colour' => Configuration::DEFAULT_COLOUR], directories: ['tests/icons'], colours: self::COLOURS ); @@ -122,7 +124,7 @@ class IconRuntimeTest extends TestCase public function testDefaultSizeIsSetOnSvgIfNoSizeOptionPassed(): void { - $defaultSize = IconRuntime::DEFAULT_SIZE; + $defaultSize = Configuration::DEFAULT_SIZE; $content = $this->icon->renderIcon(['icon' => self::ICON]); $regex = "/^icon->renderIcon(['icon' => self::ICON]); $widthRegex = "/width=\"{$defaultSize}\"/";