diff --git a/module/VuFind/tests/integration-tests/src/VuFindTest/Auth/DatabaseTest.php b/module/VuFind/tests/integration-tests/src/VuFindTest/Auth/DatabaseTest.php index 3add1a20c53ba7dca91f321d93c592ef033d87ad..171ec5dc803902caa80c1bd9d06a09fa7fc8e546 100644 --- a/module/VuFind/tests/integration-tests/src/VuFindTest/Auth/DatabaseTest.php +++ b/module/VuFind/tests/integration-tests/src/VuFindTest/Auth/DatabaseTest.php @@ -185,14 +185,20 @@ class DatabaseTest extends \VuFindTest\Unit\DbTestCase } /** - * Test password mismatch. + * Test successful account creation. * * @return void */ public function testSuccessfulCreation() { $request = $this->getAccountCreationRequest(); - $this->auth->create($request); + $newUser = $this->auth->create($request)->toArray(); + foreach ($request->getPost() as $key => $value) { + // Skip the password confirmation value! + if ($key !== 'password2') { + $this->assertEquals($value, $newUser[$key]); + } + } } /**