You are here

public function FeedsTamperHashTestCase::executeHash in Feeds Tamper 7

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

Class

FeedsTamperHashTestCase
Tests for hash.inc

Code

public function executeHash($input, $output, $settings) {
  $result = new stdClass();
  $result->items = array();
  $result->items[] = $input;
  $this
    ->callback($result, 0, 'hash', $result->items[0]['hash'], $settings);
  $this
    ->assertIdentical($result->items[0]['hash'], $output);
}