| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | function it_can_be_created(StreamName $name, DomainEvent $event, \DateTimeImmutable $occurredOn) |
||
| 25 | { |
||
| 26 | $this->beConstructedWith(1, $name, $event); |
||
| 27 | $this->shouldHaveType(StoredEvent::class); |
||
| 28 | $this->shouldImplement(DomainEvent::class); |
||
| 29 | |||
| 30 | $name->name()->shouldBeCalled()->willReturn('user-1234567890'); |
||
| 31 | $event->occurredOn()->shouldBeCalled()->willReturn($occurredOn); |
||
| 32 | |||
| 33 | $this->order()->shouldReturn(1); |
||
| 34 | $this->name()->shouldReturn('1@user-1234567890'); |
||
| 35 | $this->occurredOn()->shouldReturn($occurredOn); |
||
| 36 | $this->event()->shouldReturn($event); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |