You are here

public function JsonPathLinesParserTest::testEmptyFeed in Feeds extensible parsers 8

Tests empty feed handling.

File

tests/src/Unit/Feeds/Parser/JsonPathLinesParserTest.php, line 90

Class

JsonPathLinesParserTest
@coversDefaultClass \Drupal\feeds_ex\Feeds\Parser\JsonPathLinesParser @group feeds_ex

Namespace

Drupal\Tests\feeds_ex\Unit\Feeds\Parser

Code

public function testEmptyFeed() {
  $this->parser
    ->parse($this->feed, new FetcherResult($this->moduleDir . '/tests/resources/empty.txt'), $this->state);
  $this
    ->assertEmptyFeedMessage($this->parser
    ->getMessenger()
    ->getMessages());
}