Skip to content

Commit 244c378

Browse files
author
Mikhail Bakulin
committed
Unit test is fixed according to new daemon restart functionality
1 parent 47eafe8 commit 244c378

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/components/ConsumerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ public function testForceRestart()
279279
$channel = $this->getMockBuilder(AMQPChannel::class)
280280
->disableOriginalConstructor()
281281
->getMock();
282+
$channel->expects($this->once())
283+
->method('basic_cancel');
282284
$connection->method('channel')
283285
->willReturn($channel);
284286
$routing = $this->createMock(Routing::class);
@@ -294,5 +296,6 @@ public function testForceRestart()
294296
$consumer->expects($this->once())
295297
->method('setup');
296298
$consumer->setQueues(['queue' => 'callback']);
299+
$consumer->restartDaemon();
297300
}
298301
}

0 commit comments

Comments
 (0)