Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurk91 committed Jun 29, 2022
1 parent 6bdb327 commit cc9f9e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
],
"require": {
"php": "^8.0.0",
"illuminate/http": "^9.8",
"illuminate/support": "^9.8",
"illuminate/translation": "^9.8",
"illuminate/http": "^9.19",
"illuminate/support": "^9.19",
"illuminate/translation": "^9.19",
"stripe/stripe-php": "^7.51.0 || ^8.0"
},
"require-dev": {
Expand Down
6 changes: 3 additions & 3 deletions tests/ApiExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testItShouldReport()
$this->assertTrue($exception->shouldReport($originalException));

$handler = $this->app->make(\Illuminate\Foundation\Exceptions\Handler::class);
Log::shouldReceive('log')->once();
Log::shouldReceive('error')->once();
$handler->report($exception);
}

Expand All @@ -42,7 +42,7 @@ public function testItShouldNotReport()
$this->assertFalse($exception->shouldReport($originalException));

$handler = $this->app->make(\Illuminate\Foundation\Exceptions\Handler::class);
Log::shouldReceive('log')->never();
Log::shouldReceive('error')->never();
$handler->report($exception);
}

Expand All @@ -55,7 +55,7 @@ public function testAlwaysReportWhenDebugIsTrue()
$this->assertTrue($exception->shouldReport($originalException));

$handler = $this->app->make(\Illuminate\Foundation\Exceptions\Handler::class);
Log::shouldReceive('log')->once();
Log::shouldReceive('error')->once();
$handler->report($exception);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/OAuthExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testItShouldReport()
$this->assertTrue($exception->shouldReport($stripeException));

$handler = $this->app->make(\Illuminate\Foundation\Exceptions\Handler::class);
Log::shouldReceive('log')->once();
Log::shouldReceive('error')->once();
$handler->report($exception);
}

Expand All @@ -42,7 +42,7 @@ public function testItShouldNotReport()
$this->assertFalse($exception->shouldReport($originalException));

$handler = $this->app->make(\Illuminate\Foundation\Exceptions\Handler::class);
Log::shouldReceive('log')->never();
Log::shouldReceive('error')->never();
$handler->report($exception);
}

Expand Down

0 comments on commit cc9f9e4

Please sign in to comment.