public function FeedsTamperRequiredTestCase::executeReq in Feeds Tamper 7
Same name and namespace in other branches
- 6 tests/feeds_tamper_plugins.test \FeedsTamperRequiredTestCase::executeReq()
1 call to FeedsTamperRequiredTestCase::executeReq()
File
- tests/
feeds_tamper_plugins.test, line 843 - Unit tests for feeds tamper plugins.
Class
- FeedsTamperRequiredTestCase
- Tests for required.inc
Code
public function executeReq(array $input, array $output, $source, $settings = array()) {
$result = new stdClass();
$result->items = $input;
foreach ($result->items as $key => &$item) {
foreach ($item as $element_key => &$i) {
if ($source == $element_key) {
$this
->callback($result, $key, $element_key, $i, $settings);
}
}
}
$this
->assertEqual($result->items, $output);
}