summaryrefslogtreecommitdiff
path: root/tests/Unit/Middleware/ErrorHandlerTest.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-07-21 13:24:47 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-07-21 13:24:47 +0200
commit51a3c6eb44a5dbdf9d7a3cfac678f0d29b0d3eef (patch)
tree653be47a7866e4cd96bc55ab38cef8630659ade9 /tests/Unit/Middleware/ErrorHandlerTest.php
parentb03102e3c613bd057f117a145d94aec4c977006c (diff)
ErrorHandler: Remove some form fields before serialization
Diffstat (limited to 'tests/Unit/Middleware/ErrorHandlerTest.php')
-rw-r--r--tests/Unit/Middleware/ErrorHandlerTest.php6
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 */