diff --git a/src/Illuminate/Foundation/Testing/TestResponse.php b/src/Illuminate/Foundation/Testing/TestResponse.php index dcfc13306eaa..02c53e139619 100644 --- a/src/Illuminate/Foundation/Testing/TestResponse.php +++ b/src/Illuminate/Foundation/Testing/TestResponse.php @@ -272,6 +272,16 @@ public function decodeResponseJson() return $decodedResponse; } + /** + * Alias for the "decodeResponseJson" method. + * + * @return array + */ + public function json() + { + return $this->decodeResponseJson(); + } + /** * Assert that the response view has a given piece of bound data. *