Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function testCreate() |
||
40 | { |
||
41 | $this |
||
42 | ->given($factory = $this->createFactory()) |
||
43 | ->and($postId = PostId::fromNative(md5(rand()))) |
||
44 | ->and($repository = $factory->create(PostEventSourced::class)) |
||
45 | ->then() |
||
46 | ->object($repository) |
||
47 | ->isInstanceOf(AggregateRepository::class) |
||
48 | ->and() |
||
49 | ->string($this->invoke($repository)->streamName($postId)) |
||
50 | ->isEqualTo('PostEventSourced-'.$postId) |
||
51 | ; |
||
52 | } |
||
53 | } |
||
54 |