Skip to content

Commit

Permalink
fix array persistence test (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkSide666 authored Apr 26, 2021
1 parent 481411b commit cd9a7a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/PasswordFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testPasswordPersistence()
$m->save();

// stored encoded password
$enc = $this->getProtected($p, 'data')['data'][1]['p'];
$enc = $this->getProtected($p, 'data')['data']->getRowById($m, 1)->getValue('p');
$this->assertTrue(is_string($enc));
$this->assertNotSame('mypass', $enc);

Expand All @@ -69,7 +69,7 @@ public function testPasswordPersistence()
$this->assertTrue($m->getField('p')->verify('newpass'));

// will have new hash
$this->assertNotSame($enc, $this->getProtected($p, 'data')['data'][1]['p']);
$this->assertNotSame($enc, $this->getProtected($p, 'data')['data']->getRowById($m, 1)->getValue('p'));
}

public function testCanNotCompareEmptyException()
Expand Down

0 comments on commit cd9a7a9

Please sign in to comment.