Skip to content

Commit 95fe2ac

Browse files
committed
Remove deprecated Assert class
1 parent 861e990 commit 95fe2ac

File tree

4 files changed

+3
-1200
lines changed

4 files changed

+3
-1200
lines changed

src/Testing/Assert.php

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/Testing/TestResponseMacros.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@
33
namespace Inertia\Testing;
44

55
use Closure;
6-
use Illuminate\Testing\Fluent\AssertableJson;
76

87
class TestResponseMacros
98
{
109
public function assertInertia()
1110
{
1211
return function (Closure $callback = null) {
13-
if (class_exists(AssertableJson::class)) {
14-
$assert = AssertableInertia::fromTestResponse($this);
15-
} else {
16-
$assert = Assert::fromTestResponse($this);
17-
}
12+
$assert = AssertableInertia::fromTestResponse($this);
1813

1914
if (is_null($callback)) {
2015
return $this;
@@ -29,11 +24,7 @@ public function assertInertia()
2924
public function inertiaPage()
3025
{
3126
return function () {
32-
if (class_exists(AssertableJson::class)) {
33-
return AssertableInertia::fromTestResponse($this)->toArray();
34-
}
35-
36-
return Assert::fromTestResponse($this)->toArray();
27+
return AssertableInertia::fromTestResponse($this)->toArray();
3728
};
3829
}
3930
}

0 commit comments

Comments
 (0)