Skip to content

Commit

Permalink
Add json alias for decodeResponseJson method
Browse files Browse the repository at this point in the history
  • Loading branch information
jerguslejko committed Feb 2, 2017
1 parent 55efbf0 commit c224599
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Foundation/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit c224599

Please sign in to comment.