Created
August 11, 2021 10:35
-
-
Save dazecoop/60dfe602515ffbee8f234d880f7032c4 to your computer and use it in GitHub Desktop.
Output JSON from a $this->json() within Laravel/PHPUnit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$resp = $this->json('GET', "THE_URL", [ | |
// THE PAYLOAD | |
]); | |
dd((array)json_decode($resp->content())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment