public function FeedsTamperWebTestCase::setUp in Feeds Tamper 7
Overrides FeedsTamperWebTestHelper::setUp
File
- tests/
feeds_tamper.test, line 153 - Tests for feeds_tamper.module.
Class
- FeedsTamperWebTestCase
- Simple tests for api functionality.
Code
public function setUp() {
parent::setUp();
$this
->createImporterConfiguration();
$this
->addMappings('syndication', array(
0 => array(
'source' => 'title',
'target' => 'title',
'unique' => FALSE,
),
1 => array(
'source' => 'guid',
'target' => 'guid',
'unique' => TRUE,
),
2 => array(
'source' => 'description',
'target' => 'body',
),
));
// Set update existing to simplify our lives.
$this
->setSettings('syndication', 'FeedsNodeProcessor', array(
'update_existing' => 1,
));
}