From cb875043e007a4ea270d35666ca01d36c3cbb81e Mon Sep 17 00:00:00 2001 From: Rob Allen Date: Wed, 6 Jan 2021 09:18:54 +0000 Subject: [PATCH] Ensure that the requestHandlerProphecy's handle() is called --- tests/GuardTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/GuardTest.php b/tests/GuardTest.php index 701ceb5..bd410c6 100644 --- a/tests/GuardTest.php +++ b/tests/GuardTest.php @@ -289,7 +289,8 @@ public function testTokenIsRemovedFromStorageWhenPersistentModeIsOff() $requestHandlerProphecy = $this->prophesize(RequestHandlerInterface::class); $requestHandlerProphecy ->handle(Argument::type(ServerRequestInterface::class)) - ->willReturn($responseProphecy->reveal()); + ->willReturn($responseProphecy->reveal()) + ->shouldBeCalledOnce(); $responseFactoryProphecy = $this->prophesize(ResponseFactoryInterface::class);