public function FeedsTamperHashTestCase::test in Feeds Tamper 6
Same name and namespace in other branches
- 7 tests/feeds_tamper_plugins.test \FeedsTamperHashTestCase::test()
File
- tests/
feeds_tamper_plugins.test, line 417 - 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);
}