public function CsvParserTest::testEmptyFeed in Feeds 8.3
Tests parsing an empty CSV file.
@covers ::parse
File
- tests/
src/ Unit/ Feeds/ Parser/ CsvParserTest.php, line 146
Class
- CsvParserTest
- @coversDefaultClass \Drupal\feeds\Feeds\Parser\CsvParser @group feeds
Namespace
Drupal\Tests\feeds\Unit\Feeds\ParserCode
public function testEmptyFeed() {
$this->feedType
->method('getMappingSources')
->will($this
->returnValue([]));
touch('vfs://feeds/empty_file');
$result = new FetcherResult('vfs://feeds/empty_file');
$this
->expectException(EmptyFeedException::class);
$this->parser
->parse($this->feed, $result, $this->state);
}