public function FeedsTamperWebTestCase::testBasic in Feeds Tamper 7
Same name and namespace in other branches
- 6 tests/feeds_tamper.test \FeedsTamperWebTestCase::testBasic()
File
- tests/feeds_tamper.test, line 177
- Tests for feeds_tamper.module.
Class
- FeedsTamperWebTestCase
- Simple tests for api functionality.
Code
public function testBasic() {
$this
->addTamperPlugin('syndication', 'title', 'explode', array(
'separator' => '$',
'limit' => '',
));
$id = $this
->addTamperPlugin('syndication', 'title', 'convert_case', array(
'mode' => 0,
));
$this
->addTamperPlugin('syndication', 'title', 'implode', array(
'glue' => '',
));
$nid = $this
->createFeedNode();
$this
->assertUppercaseDevseedFeedContent();
$this
->disableTamperPlugin($id);
$this
->drupalPost('node/' . $nid . '/import', array(), 'Import');
$this
->assertText('Updated 10 nodes.');
$this
->assertDevseedFeedContent();
}