Changeset 4994
- Timestamp:
- 09/26/08 20:23:48 (9 months ago)
- Files:
-
- 1 modified
-
branches/1.0/tests/Ticket/1395TestCase.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/tests/Ticket/1395TestCase.php
r4975 r4994 52 52 try { 53 53 $myModel = $this->conn->getTable('T1395_MyModel')->find(0); 54 print_r($myModel->toArray(true)); 55 exit; 54 56 $this->assertTrue(isset($myModel->dt_created)); 55 57 $this->assertTrue(isset($myModel->days_old)); // This is a calculated field from within the T1395_Listener::preHydrate … … 66 68 { 67 69 $this->hasColumn('id', 'integer', 4, array('primary' => true, 'notnull' => true)); 68 $this->hasColumn('dt_created', 'date' , null, array('alltypes' => array( 0 => 'date', ), 'ntype' => 'date', 'values' => array(), 'primary' => false, 'notnull' => false, 'autoincrement' => false));70 $this->hasColumn('dt_created', 'date'); 69 71 } 70 72