You are here

public function FeedsTamperRewriteTestCase::executeRew in Feeds Tamper 6

Same name and namespace in other branches
  1. 7 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 793
Unit tests for feeds tamper plugins.

Class

FeedsTamperRewriteTestCase
Tests for rewrite.inc

Code

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