29 $this->objectManagerHelper =
new ObjectManagerHelper($this);
30 $notifier1 = $this->createMock(\
Magento\Framework\Notification\NotifierPool::class);
31 $notifier2 = $this->createMock(\
Magento\Framework\Notification\NotifierPool::class);
32 $this->notifiers = [$notifier1, $notifier2];
33 $this->notifierList = $this->createMock(\
Magento\Framework\Notification\NotifierList::class);
34 $this->notifierList->expects($this->any())->method(
'asArray')->will($this->returnValue($this->notifiers));
35 $this->notifierPool = $this->objectManagerHelper->getObject(
36 \
Magento\Framework\Notification\NotifierPool::class,
38 'notifierList' => $this->notifierList
48 foreach ($this->notifiers as $notifier) {
49 $notifier->expects($this->once())->method(
'add')->with($severity,
$title,
$description);
58 foreach ($this->notifiers as $notifier) {
68 foreach ($this->notifiers as $notifier) {
78 foreach ($this->notifiers as $notifier) {
88 foreach ($this->notifiers as $notifier) {