12345678910111213141516171819 |
- <?php
- include 'helpers/config.php';
- class DateFormatTest extends DatabaseTest
- {
- public function test_datefield_gets_converted_to_ar_datetime()
- {
- //make sure first author has a date
- $author = Author::first();
- $author->some_date = new DateTime();
- $author->save();
-
- $author = Author::first();
- $this->assert_is_a("ActiveRecord\\DateTime",$author->some_date);
- }
- };
- ?>
|