Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
III-1817 Make sure to check the arguments passed to the filter method…
Browse files Browse the repository at this point in the history
… of the uitpas filter inside the unit test for adding and removing a label.
  • Loading branch information
Luc Wollants committed Jan 24, 2017
1 parent 451ca71 commit 5c5caf6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ReadModel/RelationsToCdbXmlProjectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use CultuurNet\UDB3\Event\Events\EventCreated;
use CultuurNet\UDB3\Event\EventType;
use CultuurNet\UDB3\Label;
use CultuurNet\UDB3\LabelCollection;
use CultuurNet\UDB3\Location\Location;
use CultuurNet\UDB3\Offer\IriOfferIdentifier;
use CultuurNet\UDB3\Offer\IriOfferIdentifierFactoryInterface;
Expand Down Expand Up @@ -385,6 +386,7 @@ public function it_adds_label_to_all_related_events_when_organizer_has_uitpas_la
);

$this->uitpasLabelFilter->method('filter')
->with(LabelCollection::fromStrings([$labelName]))
->willReturn([$labelName]);

$this->uitpasLabelApplier->expects($this->once())
Expand Down Expand Up @@ -445,6 +447,7 @@ public function it_removes_label_from_all_related_events_when_organizer_has_uitp
);

$this->uitpasLabelFilter->method('filter')
->with(LabelCollection::fromStrings([$labelName]))
->willReturn([$labelName]);

$this->uitpasLabelApplier->expects($this->once())
Expand Down

0 comments on commit 5c5caf6

Please sign in to comment.