From 07c331d43bba96cf40c272f17cc4c80ab26816b0 Mon Sep 17 00:00:00 2001 From: Markus Podar Date: Tue, 24 Aug 2021 15:24:02 +0200 Subject: [PATCH] Make getCookie public so it can be directly used in tests (#38524) --- src/Illuminate/Testing/TestResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Testing/TestResponse.php b/src/Illuminate/Testing/TestResponse.php index bfd120036e23..fdad04c88490 100644 --- a/src/Illuminate/Testing/TestResponse.php +++ b/src/Illuminate/Testing/TestResponse.php @@ -523,7 +523,7 @@ public function assertCookieMissing($cookieName) * @param string $cookieName * @return \Symfony\Component\HttpFoundation\Cookie|null */ - protected function getCookie($cookieName) + public function getCookie($cookieName) { foreach ($this->headers->getCookies() as $cookie) { if ($cookie->getName() === $cookieName) {