Skip to content

Commit

Permalink
Updated the unit tests magento#18162
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-ch committed Sep 28, 2018
1 parent 2eeb65c commit 34830c6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
namespace Magento\Customer\Test\Unit\Controller\Adminhtml\Index;

use Magento\Customer\Model\EmailNotificationInterface;
use Magento\Framework\Message\MessageInterface;

/**
* @SuppressWarnings(PHPMD.TooManyFields)
Expand Down Expand Up @@ -242,10 +243,11 @@ protected function prepareMocksForErrorMessagesProcessing()
->method('getMessages')
->willReturn($this->messageCollection);
$this->messageCollection->expects($this->once())
->method('getItems')
->method('getErrors')
->willReturn([$this->message]);
$this->messageCollection->expects($this->once())
->method('getCount')
->method('getCountByType')
->with(MessageInterface::TYPE_ERROR)
->willReturn(1);
$this->message->expects($this->once())
->method('getText')
Expand Down

0 comments on commit 34830c6

Please sign in to comment.