From 74c0f18f14ee5122f01b8080d296941c04724467 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 24 Feb 2021 16:47:56 +0000 Subject: [PATCH] Add dd method to TestResponse --- src/Illuminate/Testing/TestResponse.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Illuminate/Testing/TestResponse.php b/src/Illuminate/Testing/TestResponse.php index 1bfc75285518..19375e9cba62 100644 --- a/src/Illuminate/Testing/TestResponse.php +++ b/src/Illuminate/Testing/TestResponse.php @@ -717,6 +717,16 @@ public function assertJsonMissingValidationErrors($keys = null, $responseKey = ' return $this; } + /** + * Die and dump the HTTP response. + * + * @return void + */ + public function dd() + { + dd($this); + } + /** * Validate and return the decoded response JSON. *