| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function testOutboxHappyPathWorkflowOnFlushEvent() : void |
||
| 34 | { |
||
| 35 | $this->mapBasedEventsHandler->addConverter( |
||
| 36 | 'Dsantang\DomainEventsDoctrine\Tests\Unit\Outbox\Stub\DomainEvents\FirstDomainEvent', |
||
| 37 | new FirstOutboxConverter() |
||
| 38 | ); |
||
| 39 | |||
| 40 | $eventArgs = $this->getEventArgs(); |
||
| 41 | |||
| 42 | $this->entityManager->expects(self::once())->method('persist'); |
||
| 43 | $this->unitOfWork->expects(self::once())->method('computeChangeSets'); |
||
| 44 | |||
| 45 | $this->mapBasedEventsHandler->onFlush($eventArgs); |
||
| 46 | } |
||
| 48 |