@@ -62,6 +62,8 @@ public function testNotFound(): void
62
62
$ expected = [
63
63
'errors ' => [
64
64
[
65
+ // @TODO added in Laravel 9
66
+ // 'detail' => 'The route foobar could not be found.',
65
67
'status ' => '404 ' ,
66
68
'title ' => 'Not Found ' ,
67
69
],
@@ -74,15 +76,16 @@ public function testNotFound(): void
74
76
$ this ->get ('/foobar ' , ['Accept ' => 'application/vnd.api+json ' ])
75
77
->assertStatus (404 )
76
78
->assertHeader ('Content-Type ' , 'application/vnd.api+json ' )
77
- ->assertExactJson ($ expected );
79
+ ->assertJson ($ expected ); // @TODO revert to `assertExactJson` when using only Laravel 9
78
80
}
79
81
80
82
public function testMethodNotAllowed (): void
81
83
{
82
84
$ expected = [
83
85
'errors ' => [
84
86
[
85
- 'detail ' => 'The POST method is not supported for this route. Supported methods: GET, HEAD. ' ,
87
+ // @TODO detail has changed in Laravel 9
88
+ // 'detail' => 'The POST method is not supported for this route. Supported methods: GET, HEAD.',
86
89
'status ' => '405 ' ,
87
90
'title ' => 'Method Not Allowed ' ,
88
91
],
@@ -95,7 +98,7 @@ public function testMethodNotAllowed(): void
95
98
$ this ->post ('/test ' , [], ['Accept ' => 'application/vnd.api+json ' ])
96
99
->assertStatus (405 )
97
100
->assertHeader ('Content-Type ' , 'application/vnd.api+json ' )
98
- ->assertExactJson ($ expected );
101
+ ->assertJson ($ expected ); // @TODO revert back to `assertExactJson`
99
102
}
100
103
101
104
/**
0 commit comments