public function FeedsExXmlUnitTests::testLinkIsSet in Feeds extensible parsers 7.2
Tests that the link propery is set.
File
- src/
Tests/ FeedsExXml.test, line 174 - Contains tests for FeedsExXml.
Class
- FeedsExXmlUnitTests
- Unit tests for FeedsExXml.
Code
public function testLinkIsSet() {
$this
->setProperty($this->source, 'config', array(
'FeedsFileFetcher' => array(
'source' => 'file fetcher source path',
),
));
$parser = FeedsConfigurable::instance('FeedsExXml', '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');
}