Skip to content

Commit

Permalink
fix bug in old input check
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 29, 2020
1 parent aa01bc4 commit f0639fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f0639fd

Please sign in to comment.