@@ -48,7 +48,7 @@ public function test_json_api_content_type_is_returned()
48
48
);
49
49
}
50
50
51
- public function test_error_when_valid_request_content_type_has_parameters ()
51
+ public function test_error_when_request_content_type_has_parameters ()
52
52
{
53
53
$ request = $ this ->buildRequest ('PATCH ' , '/users/1 ' )
54
54
->withHeader ('Content-Type ' , 'application/vnd.api+json;profile="http://example.com/last-modified" ' );
@@ -58,7 +58,7 @@ public function test_error_when_valid_request_content_type_has_parameters()
58
58
$ this ->api ->handle ($ request );
59
59
}
60
60
61
- public function test_error_when_all_valid_accepts_have_parameters ()
61
+ public function test_error_when_all_accepts_have_parameters ()
62
62
{
63
63
$ request = $ this ->buildRequest ('GET ' , '/users/1 ' )
64
64
->withHeader ('Accept ' , 'application/vnd.api+json;profile="http://example.com/last-modified", application/vnd.api+json;profile="http://example.com/versioning" ' );
@@ -77,4 +77,14 @@ public function test_success_when_only_some_accepts_have_parameters()
77
77
78
78
$ this ->assertEquals (200 , $ response ->getStatusCode ());
79
79
}
80
+
81
+ public function test_success_when_accepts_wildcard ()
82
+ {
83
+ $ response = $ this ->api ->handle (
84
+ $ this ->buildRequest ('GET ' , '/users/1 ' )
85
+ ->withHeader ('Accept ' , '*/* ' )
86
+ );
87
+
88
+ $ this ->assertEquals (200 , $ response ->getStatusCode ());
89
+ }
80
90
}
0 commit comments