public function FeedsTamperCopyTestCase::test in Feeds Tamper 6
Same name and namespace in other branches
- 7 tests/feeds_tamper_plugins.test \FeedsTamperCopyTestCase::test()
File
- tests/
feeds_tamper_plugins.test, line 226 - Unit tests for feeds tamper plugins.
Class
- FeedsTamperCopyTestCase
- Tests for copy.inc
Code
public function test() {
$settings = array(
'to_from' => 'to',
'source' => 'body',
);
$item = array(
'title' => 'This is a title',
'body' => 'This is a body',
);
$this
->executeCop($item, 'title', $settings);
$settings = array(
'to_from' => 'from',
'source' => 'body',
);
$this
->executeCop($item, 'title', $settings);
}