From f0639fda45fc2874986fe409d944dde21d42c6f3 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 29 Apr 2020 15:54:05 -0500 Subject: [PATCH] fix bug in old input check --- src/Illuminate/Foundation/Testing/TestResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Testing/TestResponse.php b/src/Illuminate/Foundation/Testing/TestResponse.php index e906b3aa15c4..2db82f7ae3a8 100644 --- a/src/Illuminate/Foundation/Testing/TestResponse.php +++ b/src/Illuminate/Foundation/Testing/TestResponse.php @@ -997,7 +997,7 @@ public function assertSessionHasInput($key, $value = null) if (is_null($value)) { PHPUnit::assertTrue( - $this->session()->getOldInput($key), + $this->session()->hasOldInput($key), "Session is missing expected key [{$key}]." ); } elseif ($value instanceof Closure) {