Skip to content

Commit 60250e3

Browse files
committed
OXDEV-10002 Fix tests after rebase
1 parent cf2cd20 commit 60250e3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/Integration/Shared/Model/UserTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
class UserTest extends IntegrationTestCase
2727
{
28-
// Fixture users from tests/Fixtures/testdata_ce.sql (password: useruser)
2928
private const OTP_USER_NAME = 'user@oxid-esales.com';
3029
private const OTP_USER_PASSWORD = 'useruser';
3130

tests/Unit/Authentication/TwoFactorAuth/Infrastructure/Repository/UserRepositoryTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,10 @@ public function testResetCodeFieldsClearsOtpData(): void
153153
$userModelSpy = $this->createMock(User::class);
154154
$userModelSpy->expects($this->once())->method('load')->with($userId = uniqid());
155155
$userModelSpy->expects($this->once())->method('assign')->with([
156-
'OESMOTPCODE' => '',
157-
'OESMOTPEXPTIME' => 0,
156+
'OESMOTPCODE' => null,
157+
'OESMOTPEXPTIME' => null,
158158
'OESMOTPATTEMPTS' => 0,
159+
'OESMOTPLASTSENT' => null
159160
]);
160161
$userModelSpy->expects($this->once())->method('save');
161162

0 commit comments

Comments
 (0)