Skip to content

Commit

Permalink
Make getCookie public so it can be directly used in tests (laravel#38524
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mfn authored and victorvilella committed Oct 12, 2021
1 parent 980eaf7 commit 07c331d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 07c331d

Please sign in to comment.