You are here

public function FeedsTamperKeyWordFilterTestCase::executeKey in Feeds Tamper 6

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

File

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

Class

FeedsTamperKeyWordFilterTestCase
Tests for keyword_filter.inc

Code

public function executeKey($item, $output, $element_key, $settings) {
  $source = $this
    ->createSource();
  $source->batch->items[] = $item;
  $this
    ->validate($settings);
  $this
    ->callback($source, 0, NULL, $source->batch->items[0][$element_key], $settings);
  $this
    ->assertEqual($source->batch->items, $output);
}