private function FpmTestBase::getMessengerMock in Feeds Paragraphs 8
Mocks the messenger service.
Return value
1 call to FpmTestBase::getMessengerMock()
- FpmTestBase::setUp in tests/
src/ Unit/ FpmTestBase.php - @inheritdoc
File
- tests/
src/ Unit/ FpmTestBase.php, line 178
Class
Namespace
Drupal\Tests\feeds_para_mapper\UnitCode
private function getMessengerMock() {
$messenger = $this
->prophesize(MessengerInterface::class);
$messenger
->addWarning(Argument::any());
$messenger
->addError(Argument::any());
return $messenger;
}