Skip to content
This repository has been archived by the owner on Apr 7, 2019. It is now read-only.

Commit

Permalink
Fixed tests on the new laravel
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Aug 26, 2016
1 parent 7f32899 commit 3e4d57e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/ThrottlingMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ public function testTooManyRequestsHttpException()
{
try {
for ($i = 1; $i <= 61; $i++) {
$this->call('GET', '/dummy');
$response = $this->call('GET', '/dummy');
if ($ex = $response->exception) {
throw $ex;
} else {
$this->assertSame(200, $response->status());
}
}
} catch (ThrottlingException $e) {
$this->assertInstanceOf(TooManyRequestsHttpException::class, $e);
Expand Down

0 comments on commit 3e4d57e

Please sign in to comment.