Skip to content

Commit 34830c6

Browse files
committed
Updated the unit tests #18162
1 parent 2eeb65c commit 34830c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/Customer/Test/Unit/Controller/Adminhtml/Index/InlineEditTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace Magento\Customer\Test\Unit\Controller\Adminhtml\Index;
77

88
use Magento\Customer\Model\EmailNotificationInterface;
9+
use Magento\Framework\Message\MessageInterface;
910

1011
/**
1112
* @SuppressWarnings(PHPMD.TooManyFields)
@@ -242,10 +243,11 @@ protected function prepareMocksForErrorMessagesProcessing()
242243
->method('getMessages')
243244
->willReturn($this->messageCollection);
244245
$this->messageCollection->expects($this->once())
245-
->method('getItems')
246+
->method('getErrors')
246247
->willReturn([$this->message]);
247248
$this->messageCollection->expects($this->once())
248-
->method('getCount')
249+
->method('getCountByType')
250+
->with(MessageInterface::TYPE_ERROR)
249251
->willReturn(1);
250252
$this->message->expects($this->once())
251253
->method('getText')

0 commit comments

Comments
 (0)