fix tests

This commit is contained in:
Robin Chalas 2020-04-21 22:24:20 +02:00
parent 80444e8d87
commit f8b86df6af
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ class FormLoginAuthenticatorTest extends TestCase
$passport = $this->authenticator->authenticate($request);
$this->assertTrue($passport->hasBadge(PasswordUpgradeBadge::class));
$badge = $passport->getBadge(PasswordUpgradeBadge::class);
$this->assertEquals('s$cr$t', $badge->getPlaintextPassword());
$this->assertEquals('s$cr$t', $badge->getAndErasePlaintextPassword());
}
private function setUpAuthenticator(array $options = [])

View File

@ -84,6 +84,6 @@ class HttpBasicAuthenticatorTest extends TestCase
$passport = $authenticator->authenticate($request);
$this->assertTrue($passport->hasBadge(PasswordUpgradeBadge::class));
$badge = $passport->getBadge(PasswordUpgradeBadge::class);
$this->assertEquals('ThePassword', $badge->getPlaintextPassword());
$this->assertEquals('ThePassword', $badge->getAndErasePlaintextPassword());
}
}