Skip to content

Commit f606922

Browse files
committed
fix tests
1 parent 191f724 commit f606922

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Authenticator/FormLoginAuthenticatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function testUpgradePassword()
155155
$passport = $this->authenticator->authenticate($request);
156156
$this->assertTrue($passport->hasBadge(PasswordUpgradeBadge::class));
157157
$badge = $passport->getBadge(PasswordUpgradeBadge::class);
158-
$this->assertEquals('s$cr$t', $badge->getPlaintextPassword());
158+
$this->assertEquals('s$cr$t', $badge->getAndErasePlaintextPassword());
159159
}
160160

161161
private function setUpAuthenticator(array $options = [])

Tests/Authenticator/HttpBasicAuthenticatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ public function testUpgradePassword()
8484
$passport = $authenticator->authenticate($request);
8585
$this->assertTrue($passport->hasBadge(PasswordUpgradeBadge::class));
8686
$badge = $passport->getBadge(PasswordUpgradeBadge::class);
87-
$this->assertEquals('ThePassword', $badge->getPlaintextPassword());
87+
$this->assertEquals('ThePassword', $badge->getAndErasePlaintextPassword());
8888
}
8989
}

0 commit comments

Comments
 (0)