diff --git a/tests/Behat/Context/Setup/BlockContext.php b/tests/Behat/Context/Setup/BlockContext.php index c66b76ac0..790fff8c0 100755 --- a/tests/Behat/Context/Setup/BlockContext.php +++ b/tests/Behat/Context/Setup/BlockContext.php @@ -12,6 +12,7 @@ use Behat\Behat\Context\Context; use BitBag\SyliusCmsPlugin\Entity\BlockInterface; +use BitBag\SyliusCmsPlugin\Entity\ContentConfiguration; use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; use BitBag\SyliusCmsPlugin\Repository\BlockRepositoryInterface; use Sylius\Behat\Service\SharedStorageInterface; @@ -25,7 +26,6 @@ public function __construct( private SharedStorageInterface $sharedStorage, private RandomStringGeneratorInterface $randomStringGenerator, private FactoryInterface $blockFactory, - private FactoryInterface $contentConfigurationFactory, private BlockRepositoryInterface $blockRepository, ) { } @@ -96,8 +96,7 @@ private function createBlockWithTextareaContentElement(string $code): BlockInter { $block = $this->createBlock($code); - /** @var ContentConfigurationInterface $contentConfiguration */ - $contentConfiguration = $this->contentConfigurationFactory->createNew(); + $contentConfiguration = new ContentConfiguration(); $contentConfiguration->setType('textarea'); $contentConfiguration->setConfiguration(['textarea' => 'Content']); $contentConfiguration->setBlock($block); diff --git a/tests/Behat/Resources/services/contexts/setup.xml b/tests/Behat/Resources/services/contexts/setup.xml index 3f700a5b9..87af1d70e 100644 --- a/tests/Behat/Resources/services/contexts/setup.xml +++ b/tests/Behat/Resources/services/contexts/setup.xml @@ -8,7 +8,6 @@ -