diff --git a/tests/PasswordFieldTest.php b/tests/PasswordFieldTest.php index 5467df30..a18a1a7f 100644 --- a/tests/PasswordFieldTest.php +++ b/tests/PasswordFieldTest.php @@ -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); @@ -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()