Skip to content

Commit

Permalink
Update ActingAsTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Jan 21, 2020
1 parent 174d41c commit 6948bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Feature/ActingAsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testActingAsWhenTheRouteIsProtectedByAuthMiddlware()

$router->get('/foo', function () {
return 'bar';
})->middleware('auth:api');
})->middleware('auth:airlock');

Airlock::actingAs(new AirlockUser());

Expand All @@ -54,7 +54,7 @@ public function testActingAsWhenTheRouteIsProtectedUsingAbilities()
}

return response(403);
})->middleware('auth:api');
})->middleware('auth:airlock');

$user = new AirlockUser();
$user->createToken('test-token', ['baz'])->plainTextToken;
Expand Down

0 comments on commit 6948bb8

Please sign in to comment.