You are here

public function SyndicationParserTest::testInvalidFeed in Feeds 8.3

Tests parsing an invalid feed.

@covers ::parse

File

tests/src/Unit/Feeds/Parser/SyndicationParserTest.php, line 144

Class

SyndicationParserTest
@coversDefaultClass \Drupal\feeds\Feeds\Parser\SyndicationParser @group feeds

Namespace

Drupal\Tests\feeds\Unit\Feeds\Parser

Code

public function testInvalidFeed() {
  $fetcher_result = new RawFetcherResult('beep boop', $this
    ->getMockFileSystem());
  $this
    ->expectException(RuntimeException::class);
  $result = $this->parser
    ->parse($this->feed, $fetcher_result, $this->state);
}