You are here

public function FeedsTamperTimeToDateTestCase::test in Feeds Tamper 7

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

File

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

Class

FeedsTamperTimeToDateTestCase
Tests for timetodate.inc

Code

public function test() {
  $settings = array(
    'date_format' => "\\I\\t'\\s g \\o'\\c\\l\\o\\c\\k \\J\\i\\m\\.",
  );

  // Use mktime() so that test works in different timezones.
  $this
    ->execute(mktime(7), "It's 7 o'clock Jim.", $settings);
}