public function FeedsTamperCopyTestCase::executeCop in Feeds Tamper 6
Same name and namespace in other branches
- 7 tests/feeds_tamper_plugins.test \FeedsTamperCopyTestCase::executeCop()
1 call to FeedsTamperCopyTestCase::executeCop()
File
- tests/
feeds_tamper_plugins.test, line 243 - Unit tests for feeds tamper plugins.
Class
- FeedsTamperCopyTestCase
- Tests for copy.inc
Code
public function executeCop($input, $element_key, $settings) {
$source = $this
->createSource();
$source->batch->items[] = $input;
$this
->callback($source, 0, $element_key, $source->batch->items[0][$element_key], $settings);
$this
->assertEqual($source->batch->items[0][$element_key], $source->batch->items[0][$settings['source']]);
}