You are here

public function FeedsTamperHashTestCase::test in Feeds Tamper 7

Same name and namespace in other branches
  1. 6 tests/feeds_tamper_plugins.test \FeedsTamperHashTestCase::test()

File

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

Class

FeedsTamperHashTestCase
Tests for hash.inc

Code

public function test() {
  $item = array(
    'title' => 'Yay title!',
    'body' => 'Yay body!',
    'hash' => 'asdfasf',
  );
  $settings = array(
    'override' => TRUE,
  );
  $this
    ->executeHash($item, md5(serialize($item)), $settings);

  // Test override = FALSE.
  $settings['override'] = FALSE;
  $this
    ->executeHash($item, 'asdfasf', $settings);
}