You are here

public function SitemapParserTest::testEmptyFeed in Feeds 8.3

Tests parsing an empty feed.

@covers ::parse

File

tests/src/Unit/Feeds/Parser/SitemapParserTest.php, line 97

Class

SitemapParserTest
@coversDefaultClass \Drupal\feeds\Feeds\Parser\SitemapParser @group feeds

Namespace

Drupal\Tests\feeds\Unit\Feeds\Parser

Code

public function testEmptyFeed() {
  $result = new RawFetcherResult('', $this
    ->getMockFileSystem());
  $this
    ->expectException(EmptyFeedException::class);
  $this->parser
    ->parse($this->feed, $result, $this->state);
}