From ae6f00a177eda687bc030b93314eb60a18a31f3e Mon Sep 17 00:00:00 2001 From: jkindly Date: Tue, 25 Jun 2024 14:08:59 +0200 Subject: [PATCH] OP-321: Spec fix --- spec/Entity/BlockSpec.php | 24 ------------------------ spec/Importer/BlockImporterSpec.php | 4 ---- 2 files changed, 28 deletions(-) diff --git a/spec/Entity/BlockSpec.php b/spec/Entity/BlockSpec.php index 988f87756..190db4c18 100755 --- a/spec/Entity/BlockSpec.php +++ b/spec/Entity/BlockSpec.php @@ -45,18 +45,6 @@ public function it_toggles(): void $this->isEnabled()->shouldReturn(false); } - public function it_associates_products(ProductInterface $firstProduct, ProductInterface $secondProduct): void - { - $this->addProduct($firstProduct); - $this->hasProduct($firstProduct)->shouldReturn(true); - - $this->hasProduct($secondProduct)->shouldReturn(false); - - $this->removeProduct($firstProduct); - - $this->hasProduct($firstProduct)->shouldReturn(false); - } - public function it_associates_collections(CollectionInterface $firstCollection, CollectionInterface $secondCollection): void { $this->addCollection($firstCollection); @@ -80,16 +68,4 @@ public function it_associates_channels(ChannelInterface $firstChannel, ChannelIn $this->hasChannel($firstChannel)->shouldReturn(false); } - - public function it_associates_taxons(TaxonInterface $firstTaxon, TaxonInterface $secondTaxon): void - { - $this->addTaxon($firstTaxon); - $this->hasTaxon($firstTaxon)->shouldReturn(true); - - $this->hasTaxon($secondTaxon)->shouldReturn(false); - - $this->removeTaxon($firstTaxon); - - $this->hasTaxon($secondTaxon)->shouldReturn(false); - } } diff --git a/spec/Importer/BlockImporterSpec.php b/spec/Importer/BlockImporterSpec.php index a4181fade..cf4a53529 100644 --- a/spec/Importer/BlockImporterSpec.php +++ b/spec/Importer/BlockImporterSpec.php @@ -26,7 +26,6 @@ public function let( ResourceResolverInterface $blockResourceResolver, ImporterCollectionsResolverInterface $importerCollectionsResolver, ImporterChannelsResolverInterface $importerChannelsResolver, - ImporterProductsResolverInterface $importerProductsResolver, ValidatorInterface $validator, BlockRepositoryInterface $blockRepository ) { @@ -34,7 +33,6 @@ public function let( $blockResourceResolver, $importerCollectionsResolver, $importerChannelsResolver, - $importerProductsResolver, $validator, $blockRepository ); @@ -50,7 +48,6 @@ public function it_imports_block( ResourceResolverInterface $blockResourceResolver, ImporterCollectionsResolverInterface $importerCollectionsResolver, ImporterChannelsResolverInterface $importerChannelsResolver, - ImporterProductsResolverInterface $importerProductsResolver, ValidatorInterface $validator, BlockRepositoryInterface $blockRepository, BlockInterface $block @@ -63,7 +60,6 @@ public function it_imports_block( $importerCollectionsResolver->resolve($block, null)->shouldBeCalled(); $importerChannelsResolver->resolve($block, null)->shouldBeCalled(); - $importerProductsResolver->resolve($block, null)->shouldBeCalled(); $validator->validate($block, null, ['bitbag'])->willReturn(new ConstraintViolationList());