File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
app/code/Magento/Customer/Test/Unit/Model/ForgotPasswordToken
dev/tests/integration/testsuite/Magento/Customer/Model/ForgotPasswordToken Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class GetCustomerByTokenTest extends TestCase
54
54
*/
55
55
private $ model ;
56
56
57
- protected function setUp ()
57
+ protected function setUp (): void
58
58
{
59
59
$ this ->searchCriteriaBuilderMock = $ this ->createMock (SearchCriteriaBuilder::class);
60
60
$ this ->searchCriteriaMock = $ this ->createMock (SearchCriteria::class);
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class GetCustomerByTokenTest extends TestCase
24
24
*/
25
25
private $ customerByToken ;
26
26
27
- protected function setUp ()
27
+ protected function setUp (): void
28
28
{
29
29
$ this ->objectManager = Bootstrap::getObjectManager ();
30
30
$ this ->customerByToken = $ this ->objectManager ->get (GetCustomerByToken::class);
@@ -35,7 +35,8 @@ protected function setUp()
35
35
*/
36
36
public function testExecuteWithNoSuchEntityException (): void
37
37
{
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 );
39
40
$ this ->customerByToken ->execute (self ::RESET_PASSWORD );
40
41
}
41
42
}
You can’t perform that action at this time.
0 commit comments