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