public function FeedsExHtmlUnitTests::testLinkIsSet in Feeds extensible parsers 7.2
Tests that the link propery is set.
File
- src/
Tests/ FeedsExHtml.test, line 144 - Contains tests for FeedsExHtml.
Class
- FeedsExHtmlUnitTests
- Unit tests for FeedsExHtml.
Code
public function testLinkIsSet() {
$this
->setProperty($this->source, 'config', array(
'FeedsFileFetcher' => array(
'source' => 'file fetcher source path',
),
));
$parser = FeedsConfigurable::instance('FeedsExHtml', 'test_parser');
$parser
->setConfig(array(
'context' => array(
'value' => '/beep',
),
));
$result = $parser
->parse($this->source, new FeedsFetcherResult('<?xml version="1.0" encoding="UTF-8"?><item></item>'));
$this
->assertEqual($result->link, 'file fetcher source path');
}