You are here

public function FeedsTamperRewriteTestCase::executeRew in Feeds Tamper 7

Same name and namespace in other branches
  1. 6 tests/feeds_tamper_plugins.test \FeedsTamperRewriteTestCase::executeRew()
1 call to FeedsTamperRewriteTestCase::executeRew()
FeedsTamperRewriteTestCase::test in tests/feeds_tamper_plugins.test

File

tests/feeds_tamper_plugins.test, line 889
Unit tests for feeds tamper plugins.

Class

FeedsTamperRewriteTestCase
Tests for rewrite.inc

Code

public function executeRew($input, $output, $source, $settings) {
  $result = new stdClass();
  $result->items = array(
    $input,
  );
  $this
    ->callback($result, 0, $source, $result->items[0][$source], $settings);
  $this
    ->assertEqual($result->items[0][$source], $output);
}