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