@@ -12,6 +12,7 @@ trait MakesApiRequests
1212 * @param string $uri
1313 * @param array $requestModel
1414 * @param array $headers
15+ * @return \Illuminate\Foundation\Testing\TestResponse
1516 */
1617 protected function api (string $ uri , array $ requestModel = [], array $ headers = [])
1718 {
@@ -24,6 +25,7 @@ protected function api(string $uri, array $requestModel = [], array $headers = [
2425 * @param string $uri
2526 * @param array $requestModel
2627 * @param array $headers
28+ * @return \Illuminate\Foundation\Testing\TestResponse
2729 */
2830 protected function apiPost (string $ uri , array $ requestModel = [], array $ headers = [])
2931 {
@@ -36,6 +38,7 @@ protected function apiPost(string $uri, array $requestModel = [], array $headers
3638 * @param string $uri
3739 * @param array $requestModel
3840 * @param array $headers
41+ * @return \Illuminate\Foundation\Testing\TestResponse
3942 */
4043 protected function apiPatch (string $ uri , array $ requestModel = [], array $ headers = [])
4144 {
@@ -48,9 +51,10 @@ protected function apiPatch(string $uri, array $requestModel = [], array $header
4851 * @param string $uri
4952 * @param array $requestModel
5053 * @param array $headers
54+ * @return \Illuminate\Foundation\Testing\TestResponse
5155 */
5256 protected function apiDelete (string $ uri , array $ requestModel = [], array $ headers = [])
5357 {
5458 return $ this ->json ('DELETE ' , $ uri , $ requestModel , array_merge ($ this ->headers (), $ headers ));
5559 }
56- }
60+ }
0 commit comments