1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?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); }
}; ?>
|