public function FeedsTamperKeyWordFilterTestCase::executeKey in Feeds Tamper 6
Same name and namespace in other branches
- 7 tests/feeds_tamper_plugins.test \FeedsTamperKeyWordFilterTestCase::executeKey()
1 call to FeedsTamperKeyWordFilterTestCase::executeKey()
File
- tests/
feeds_tamper_plugins.test, line 661 - Unit tests for feeds tamper plugins.
Class
Code
public function executeKey($item, $output, $element_key, $settings) {
$source = $this
->createSource();
$source->batch->items[] = $item;
$this
->validate($settings);
$this
->callback($source, 0, NULL, $source->batch->items[0][$element_key], $settings);
$this
->assertEqual($source->batch->items, $output);
}