| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function test_receive_reset_services() |
||
| 20 | { |
||
| 21 | $message = new \stdClass(); |
||
| 22 | $consumer = $this->createMock(ConsumerInterface::class); |
||
| 23 | |||
| 24 | $resetter = $this->createMock(ServicesResetter::class); |
||
| 25 | $resetter->expects($this->once())->method('reset'); |
||
| 26 | |||
| 27 | $next = $this->createMock(ReceiverInterface::class); |
||
| 28 | $next->expects($this->once())->method('receive')->with($message, $consumer); |
||
| 29 | |||
| 30 | $receiver = new ResetServices($next, $resetter); |
||
| 31 | $receiver->receive($message, $consumer); |
||
| 32 | } |
||
| 35 |