Skip to content

Commit

Permalink
fix: fix mixin added for testing (monicahq/chandler#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Mar 31, 2023
1 parent c6a0be8 commit 191e2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AppServiceProvider extends ServiceProvider
*/
public function register()
{
if (App::environment('testing')) {
if (App::environment('testing') && class_exists(TestResponse::class)) {
TestResponse::mixin(new TestResponseMacros);
}
}
Expand Down

0 comments on commit 191e2aa

Please sign in to comment.