Skip to content

Commit

Permalink
OP-321: Spec fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jkindly committed Jun 25, 2024
1 parent 55b8c54 commit ae6f00a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
24 changes: 0 additions & 24 deletions spec/Entity/BlockSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}
}
4 changes: 0 additions & 4 deletions spec/Importer/BlockImporterSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ public function let(
ResourceResolverInterface $blockResourceResolver,
ImporterCollectionsResolverInterface $importerCollectionsResolver,
ImporterChannelsResolverInterface $importerChannelsResolver,
ImporterProductsResolverInterface $importerProductsResolver,
ValidatorInterface $validator,
BlockRepositoryInterface $blockRepository
) {
$this->beConstructedWith(
$blockResourceResolver,
$importerCollectionsResolver,
$importerChannelsResolver,
$importerProductsResolver,
$validator,
$blockRepository
);
Expand All @@ -50,7 +48,6 @@ public function it_imports_block(
ResourceResolverInterface $blockResourceResolver,
ImporterCollectionsResolverInterface $importerCollectionsResolver,
ImporterChannelsResolverInterface $importerChannelsResolver,
ImporterProductsResolverInterface $importerProductsResolver,
ValidatorInterface $validator,
BlockRepositoryInterface $blockRepository,
BlockInterface $block
Expand All @@ -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());

Expand Down

0 comments on commit ae6f00a

Please sign in to comment.