File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ public function login($username, $password)
175
175
'backend_auth_user_login_failed ' ,
176
176
['user_name ' => $ username , 'exception ' => $ e ]
177
177
);
178
- self ::throwException (__ ($ e -> getMessage ()? : 'Please correct the user name or password. ' ));
178
+ self ::throwException (__ ('Please correct the user name or password. ' ));
179
179
}
180
180
}
181
181
Original file line number Diff line number Diff line change @@ -59,8 +59,7 @@ public function testLoginFailed()
59
59
->method ('create ' )
60
60
->with ('Magento\Backend\Model\Auth\Credential\StorageInterface ' )
61
61
->will ($ this ->returnValue ($ this ->_credentialStorage ));
62
- $ exceptionMock =
63
- new \Magento \Framework \Exception \LocalizedException (__ ('Please correct the user name or password. ' ));
62
+ $ exceptionMock = new \Magento \Framework \Exception \LocalizedException (__ ('message ' ));
64
63
$ this ->_credentialStorage
65
64
->expects ($ this ->once ())
66
65
->method ('login ' )
You can’t perform that action at this time.
0 commit comments