public function HtmlParserTest::_testLinkIsSet in Feeds extensible parsers 8
Tests that the link property is set.
@todo turned off, because unsure if this is still needed.
File
- tests/
src/ Unit/ Feeds/ Parser/ HtmlParserTest.php, line 207
Class
- HtmlParserTest
- @coversDefaultClass \Drupal\feeds_ex\Feeds\Parser\HtmlParser @group feeds_ex
Namespace
Drupal\Tests\feeds_ex\Unit\Feeds\ParserCode
public function _testLinkIsSet() {
$this
->setProperty($this->feed, 'config', [
'FeedsFileFetcher' => [
'source' => 'file fetcher source path',
],
]);
$config = [
'context' => [
'value' => '/beep',
],
];
$result = $this->parser
->parse($this->feed, new RawFetcherResult('<?xml version="1.0" encoding="UTF-8"?><item></item>', $this->fileSystem));
$this
->assertSame($result->link, 'file fetcher source path');
}