Skip to content
Snippets Groups Projects
Commit 947615d3 authored by Demian Katz's avatar Demian Katz
Browse files

Fix risky test by adding assertions.

parent 992c3a84
Branches
Tags
No related merge requests found
...@@ -185,14 +185,20 @@ class DatabaseTest extends \VuFindTest\Unit\DbTestCase ...@@ -185,14 +185,20 @@ class DatabaseTest extends \VuFindTest\Unit\DbTestCase
} }
/** /**
* Test password mismatch. * Test successful account creation.
* *
* @return void * @return void
*/ */
public function testSuccessfulCreation() public function testSuccessfulCreation()
{ {
$request = $this->getAccountCreationRequest(); $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]);
}
}
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment