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