Skip to content

Commit bc6b273

Browse files
authored
fix: fix mixin added for testing (monicahq/chandler#355)
1 parent 8c8e462 commit bc6b273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AppServiceProvider extends ServiceProvider
2222
*/
2323
public function register()
2424
{
25-
if (App::environment('testing')) {
25+
if (App::environment('testing') && class_exists(TestResponse::class)) {
2626
TestResponse::mixin(new TestResponseMacros);
2727
}
2828
}

0 commit comments

Comments
 (0)