Skip to content

Commit c3855c8

Browse files
committed
minor change
1 parent baf892e commit c3855c8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/code/Magento/Customer/Test/Unit/Model/ForgotPasswordToken/GetCustomerByTokenTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class GetCustomerByTokenTest extends TestCase
5454
*/
5555
private $model;
5656

57-
protected function setUp()
57+
protected function setUp(): void
5858
{
5959
$this->searchCriteriaBuilderMock = $this->createMock(SearchCriteriaBuilder::class);
6060
$this->searchCriteriaMock = $this->createMock(SearchCriteria::class);

dev/tests/integration/testsuite/Magento/Customer/Model/ForgotPasswordToken/GetCustomerByTokenTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class GetCustomerByTokenTest extends TestCase
2424
*/
2525
private $customerByToken;
2626

27-
protected function setUp()
27+
protected function setUp(): void
2828
{
2929
$this->objectManager = Bootstrap::getObjectManager();
3030
$this->customerByToken = $this->objectManager->get(GetCustomerByToken::class);
@@ -35,7 +35,8 @@ protected function setUp()
3535
*/
3636
public function testExecuteWithNoSuchEntityException(): void
3737
{
38-
$this->expectExceptionMessage('No such entity with rp_token = ' . self::RESET_PASSWORD);
38+
self::expectException(NoSuchEntityException::class);
39+
self::expectExceptionMessage('No such entity with rp_token = ' . self::RESET_PASSWORD);
3940
$this->customerByToken->execute(self::RESET_PASSWORD);
4041
}
4142
}

0 commit comments

Comments
 (0)