diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-07-21 13:24:47 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-07-21 13:24:47 +0200 |
commit | 51a3c6eb44a5dbdf9d7a3cfac678f0d29b0d3eef (patch) | |
tree | 653be47a7866e4cd96bc55ab38cef8630659ade9 /tests/Unit/Middleware | |
parent | b03102e3c613bd057f117a145d94aec4c977006c (diff) |
ErrorHandler: Remove some form fields before serialization
Diffstat (limited to 'tests/Unit/Middleware')
-rw-r--r-- | tests/Unit/Middleware/ErrorHandlerTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Unit/Middleware/ErrorHandlerTest.php b/tests/Unit/Middleware/ErrorHandlerTest.php index ea9cb216..a9fdd71a 100644 --- a/tests/Unit/Middleware/ErrorHandlerTest.php +++ b/tests/Unit/Middleware/ErrorHandlerTest.php @@ -176,7 +176,11 @@ class ErrorHandlerTest extends TestCase $session = new Session(new MockArraySessionStorage()); $session->set('errors', ['validation' => ['foo' => ['validation.foo.required']]]); - $request = Request::create('/foo/bar', 'POST', ['foo' => 'bar']); + $request = Request::create( + '/foo/bar', + 'POST', + ['foo' => 'bar', 'password' => 'Test123', 'password_confirmation' => 'Test1234'] + ); $request->setSession($session); /** @var Application $app */ |