You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method called decodeResponseJson and with the comment "Validate and return the decoded response JSON." Returns the $testJson (which is asserted as vaid JSON) and not the $decodedResponse, which would seem like the correct data to return.
Maybe the comment is wrong and the name spurious. Otherwise I think that this should return the decoded JSON as implied.
I notice that this behaviour changed since 10.x
Steps To Reproduce
Run a test that requests decodeResponseJson() on a json output.
The returned data is the output of AssertableJsonString() and not the decoded response $decodedResponse, as stated.
The text was updated successfully, but these errors were encountered:
Laravel Version
11.x
PHP Version
8.1
Database Driver & Version
No response
Description
decodeResponseJson() here: https://github.com/illuminate/testing/blob/600e3d55288fec5dd00ebe330ce3766952611556/TestResponse.php#L998
This method called decodeResponseJson and with the comment "Validate and return the decoded response JSON." Returns the $testJson (which is asserted as vaid JSON) and not the $decodedResponse, which would seem like the correct data to return.
Maybe the comment is wrong and the name spurious. Otherwise I think that this should return the decoded JSON as implied.
I notice that this behaviour changed since 10.x
Steps To Reproduce
Run a test that requests decodeResponseJson() on a json output.
The returned data is the output of AssertableJsonString() and not the decoded response $decodedResponse, as stated.
The text was updated successfully, but these errors were encountered: