From f8514bfdc7edc67d1d519203fc8282d094c45c20 Mon Sep 17 00:00:00 2001 From: rr- Date: Wed, 9 Mar 2016 21:06:27 +0100 Subject: [PATCH] Fix authorization test --- tests/DispatcherTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/DispatcherTest.php b/tests/DispatcherTest.php index 115931f5..87dd3d22 100644 --- a/tests/DispatcherTest.php +++ b/tests/DispatcherTest.php @@ -1,6 +1,7 @@ httpHelperMock->expects($this->once())->method('getRequestHeader')->with($this->equalTo('X-Authorization-Token'))->willReturn('test'); - $this->tokenServiceMock->expects($this->once())->method('getByName'); + $this->tokenServiceMock->expects($this->once())->method('getByName')->willReturn(new Token()); $this->routeRepositoryMock->expects($this->once())->method('injectRoutes'); $dispatcher = $this->getDispatcher();