You are here

private function FpmTestBase::getMessengerMock in Feeds Paragraphs 8

Mocks the messenger service.

Return value

MessengerInterface

1 call to FpmTestBase::getMessengerMock()
FpmTestBase::setUp in tests/src/Unit/FpmTestBase.php
@inheritdoc

File

tests/src/Unit/FpmTestBase.php, line 178

Class

FpmTestBase

Namespace

Drupal\Tests\feeds_para_mapper\Unit

Code

private function getMessengerMock() {
  $messenger = $this
    ->prophesize(MessengerInterface::class);
  $messenger
    ->addWarning(Argument::any());
  $messenger
    ->addError(Argument::any());
  return $messenger;
}