Skip to content

Commit 2932a96

Browse files
author
Cari Spruiell
committed
MAGETWO-36701: Admin user isn't locked after exceeding maximum login failures attempts
- correct exception message in test
1 parent 2197ba9 commit 2932a96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Backend/Test/Unit/Model/AuthTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public function testLoginFailed()
5959
->method('create')
6060
->with('Magento\Backend\Model\Auth\Credential\StorageInterface')
6161
->will($this->returnValue($this->_credentialStorage));
62-
$exceptionMock = new \Magento\Framework\Exception\LocalizedException(__(''));
62+
$exceptionMock =
63+
new \Magento\Framework\Exception\LocalizedException(__('Please correct the user name or password.'));
6364
$this->_credentialStorage
6465
->expects($this->once())
6566
->method('login')

0 commit comments

Comments
 (0)