diff --git a/src/Illuminate/Foundation/Testing/TestResponse.php b/src/Illuminate/Foundation/Testing/TestResponse.php index 849671cbb9a3..633c9b45b414 100644 --- a/src/Illuminate/Foundation/Testing/TestResponse.php +++ b/src/Illuminate/Foundation/Testing/TestResponse.php @@ -799,6 +799,18 @@ public function assertSessionHasErrors($keys = [], $format = null, $errorBag = ' return $this; } + /** + * Assert that the session has no errors. + * + * @return $this + */ + public function assertSessionHasNoErrors() + { + $this->assertSessionMissing('errors'); + + return $this; + } + /** * Assert that the session has the given errors. *