From c2245992497b78c24ee912e5f6e09625258db5c4 Mon Sep 17 00:00:00 2001 From: jerguslejko Date: Thu, 2 Feb 2017 17:32:22 +0100 Subject: [PATCH] Add json alias for decodeResponseJson method --- src/Illuminate/Foundation/Testing/TestResponse.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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. *