You are here

protected function FpmTestBase::getFeedMock in Feeds Paragraphs 8

Returns a mocked feed entity.

Return value

FeedInterface A mocked feed entity.

2 calls to FpmTestBase::getFeedMock()
TestImporter::initImporter in tests/src/Unit/TestImporter.php
TestImporter::testImport in tests/src/Unit/TestImporter.php
@covers ::import

File

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

Class

FpmTestBase

Namespace

Drupal\Tests\feeds_para_mapper\Unit

Code

protected function getFeedMock() {
  $feed = $this
    ->prophesize(FeedInterface::class);
  $feed
    ->getType()
    ->willReturn($this
    ->getFeedTypeMock());
  return $feed
    ->reveal();
}