Skip to content

Commit

Permalink
Strip leading slash to allow testing repository with class keyword (#332
Browse files Browse the repository at this point in the history
)

* Strip leading slash to allow testing repository with class keyword

* simplified test assertion

* removed obsolete function
  • Loading branch information
rgeraads authored and othillo committed Dec 5, 2017
1 parent 5234965 commit 1039c00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function it_calls_the_event_stream_decorators_with_the_correct_arguments(
$lastCall = $this->eventStreamDecorator->getLastCall();

$this->assertEquals($aggregate->getAggregateRootId(), $lastCall['aggregateIdentifier']);
$this->assertEquals('\\'.get_class($aggregate), $lastCall['aggregateType']);
$this->assertInstanceOf($lastCall['aggregateType'], $aggregate);

$events = iterator_to_array($lastCall['eventStream']);
$this->assertCount(1, $events);
Expand Down

0 comments on commit 1039c00

Please sign in to comment.