Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
olotintemitope committed Apr 1, 2016
1 parent c6656ad commit 3d5ebb2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/EmojiEndpointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ public function testuserLogoutWithToken()
'REQUEST_METHOD' => 'GET',
'REQUEST_URI' => '/auth/logout',
'CONTENT_TYPE' => 'application/json',
'PATH_INFO' => '/auth',
'HTTP_AUTHORIZATION' => json_encode(['jwt' => $this->getCurrentToken()]),
]);

Expand All @@ -476,7 +475,6 @@ public function testuserWantToLogoutWithTokenButWithoutCorrectQueryParams()
'REQUEST_METHOD' => 'GET',
'REQUEST_URI' => '/auth/signout',
'CONTENT_TYPE' => 'application/json',
'PATH_INFO' => '/auth',
'HTTP_AUTHORIZATION' => json_encode(['jwt' => $this->getCurrentToken()]),
]);

Expand All @@ -485,7 +483,7 @@ public function testuserWantToLogoutWithTokenButWithoutCorrectQueryParams()
$response = $this->app->run(true);

$data = json_decode($response->getBody(), true);
$this->assertSame($response->getStatusCode(), 400);
$this->assertSame($response->getStatusCode(), 404);
}

public function testuserLogoutWithoutToken()
Expand Down

0 comments on commit 3d5ebb2

Please sign in to comment.