public function FeedsDateTimeTest::test in Feeds 8.2
Dispatch tests, only use one entry point method testX to save time.
File
- lib/
Drupal/ feeds/ Tests/ FeedsDateTimeTest.php, line 33 - Tests for FeedsDateTime class.
Class
- FeedsDateTimeTest
- Test FeedsDateTime class.
Namespace
Drupal\feeds\TestsCode
public function test() {
$date = new FeedsDateTime('2010-20-12');
$this
->assertTrue(is_numeric($date
->format('U')));
$date = new FeedsDateTime('created');
$this
->assertTrue(is_numeric($date
->format('U')));
$date = new FeedsDateTime('12/3/2009 20:00:10');
$this
->assertTrue(is_numeric($date
->format('U')));
}