File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/Customer/Test/Unit/Controller/Adminhtml/Index Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Customer \Test \Unit \Controller \Adminhtml \Index ;
7
7
8
8
use Magento \Customer \Model \EmailNotificationInterface ;
9
+ use Magento \Framework \Message \MessageInterface ;
9
10
10
11
/**
11
12
* @SuppressWarnings(PHPMD.TooManyFields)
@@ -242,10 +243,11 @@ protected function prepareMocksForErrorMessagesProcessing()
242
243
->method ('getMessages ' )
243
244
->willReturn ($ this ->messageCollection );
244
245
$ this ->messageCollection ->expects ($ this ->once ())
245
- ->method ('getItems ' )
246
+ ->method ('getErrors ' )
246
247
->willReturn ([$ this ->message ]);
247
248
$ this ->messageCollection ->expects ($ this ->once ())
248
- ->method ('getCount ' )
249
+ ->method ('getCountByType ' )
250
+ ->with (MessageInterface::TYPE_ERROR )
249
251
->willReturn (1 );
250
252
$ this ->message ->expects ($ this ->once ())
251
253
->method ('getText ' )
You can’t perform that action at this time.
0 commit comments