Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesschobel committed Apr 13, 2018
1 parent 38b755e commit 8a06c70
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Containers\User\UI\API\Tests\Functional;

use App\Containers\Authentication\Exceptions\RefreshTokenMissedException;
use App\Containers\Authentication\Tests\ApiTestCase;
use Config;
use Illuminate\Support\Facades\DB;
Expand Down Expand Up @@ -70,7 +71,8 @@ public function testRefreshWithoutBeingCreatedOrPassed()

$response->assertStatus(400);

$this->assertResponseContainKeyValue(['message' => 'We couldn\'t find your Refresh Token!']);
$message = (new RefreshTokenMissedException())->getMessage();
$this->assertResponseContainKeyValue(['message' => $message]);

// delete testing keys files if they were created for this test
if ($this->testingFilesCreated) {
Expand Down

0 comments on commit 8a06c70

Please sign in to comment.