Skip to content

Commit 1efab36

Browse files
committed
MC-33148: Fix unit test
1 parent cbcf369 commit 1efab36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Customer/Test/Unit/Controller/Account/LoginPostTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ protected function mockExceptions($exception, $username)
569569

570570
case \Magento\Framework\Exception\AuthenticationException::class:
571571
$this->messageManager->expects($this->once())
572-
->method('addErrorMessage')
572+
->method('addError')
573573
->with(
574574
__(
575575
'The account sign-in was incorrect or your account is disabled temporarily. '
@@ -597,7 +597,7 @@ protected function mockExceptions($exception, $username)
597597
. 'Please wait and try again later.'
598598
);
599599
$this->messageManager->expects($this->once())
600-
->method('addErrorMessage')
600+
->method('addError')
601601
->with($message)
602602
->willReturnSelf();
603603
$this->session->expects($this->once())

0 commit comments

Comments
 (0)