Skip to content

Commit d8d984f

Browse files
committed
AC-1323: Reset Token Improvement.
Fix integration test failures.
1 parent c076d5c commit d8d984f

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

dev/tests/integration/testsuite/Magento/Customer/Model/ResourceModel/CustomerTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ protected function setUp(): void
3131
parent::setUp();
3232
}
3333

34-
protected function tearDown(): void
35-
{
36-
$this->customerModel->delete();
37-
}
38-
3934
/**
4035
* Test save rp token
4136
*

dev/tests/integration/testsuite/Magento/User/Model/ResourceModel/UserTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public function testSave(): void
130130
{
131131
$token = 'randomstring';
132132
$username = $this->random->getRandomString(6);
133-
$email= $username."@example.com";
134-
133+
$email = $username . "@example.com";
134+
$password = uniqid().$this->random->getRandomString(10);
135135
$userModel = Bootstrap::getObjectManager()->get(User::class);
136136

137137
$userModel->setData(
@@ -140,7 +140,7 @@ public function testSave(): void
140140
'rp_token' => $token,
141141
'firstname' => 'John',
142142
'lastname' => 'Doe',
143-
'password' => $this->random->getRandomString(10),
143+
'password' => $password,
144144
'username' => $username
145145
]
146146
)->save();

0 commit comments

Comments
 (0)