You are here

public function FeedsTamperHashTestCase::executeHash in Feeds Tamper 6

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

File

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

Class

FeedsTamperHashTestCase
Tests for hash.inc

Code

public function executeHash($input, $output, $settings) {
  $source = $this
    ->createSource();
  $source->batch->items[] = $input;
  $this
    ->callback($source, 0, 'hash', $source->batch->items[0]['hash'], $settings);
  $this
    ->assertIdentical($source->batch->items[0]['hash'], $output);
}