Skip to content

Commit 248134b

Browse files
committed
[2.x] Remove old LegacyTestResponse
1 parent e96a821 commit 248134b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/ServiceProvider.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Inertia;
44

5-
use Illuminate\Foundation\Testing\TestResponse as LegacyTestResponse;
65
use Illuminate\Http\Request;
76
use Illuminate\Routing\Router;
87
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
@@ -99,13 +98,6 @@ protected function registerTestingMacros(): void
9998
return;
10099
}
101100

102-
// Laravel <= 6.0
103-
if (class_exists(LegacyTestResponse::class)) {
104-
LegacyTestResponse::mixin(new TestResponseMacros);
105-
106-
return;
107-
}
108-
109101
throw new LogicException('Could not detect TestResponse class.');
110102
}
111103

0 commit comments

Comments
 (0)