Skip to content

Commit 657d1e4

Browse files
authored
Merge pull request #736 from nshiro/remove_lagacy_test_response2
[2.x] Remove old LegacyTestResponse
2 parents e96a821 + 248134b commit 657d1e4

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)