You are here

public function FeedsTamperCopyTestCase::executeCop in Feeds Tamper 6

Same name and namespace in other branches
  1. 7 tests/feeds_tamper_plugins.test \FeedsTamperCopyTestCase::executeCop()
1 call to FeedsTamperCopyTestCase::executeCop()
FeedsTamperCopyTestCase::test in tests/feeds_tamper_plugins.test

File

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

Class

FeedsTamperCopyTestCase
Tests for copy.inc

Code

public function executeCop($input, $element_key, $settings) {
  $source = $this
    ->createSource();
  $source->batch->items[] = $input;
  $this
    ->callback($source, 0, $element_key, $source->batch->items[0][$element_key], $settings);
  $this
    ->assertEqual($source->batch->items[0][$element_key], $source->batch->items[0][$settings['source']]);
}