Changeset 3705 for trunk/tests/Inheritance
- Timestamp:
- 02/07/08 10:40:27 (11 months ago)
- Files:
-
- 1 modified
-
trunk/tests/Inheritance/JoinedTestCase.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/Inheritance/JoinedTestCase.php
r3701 r3705 103 103 } 104 104 105 public function testUpdateUpdatesOnlyChangedFields() 106 { 107 $manager = $this->_createManager(); 108 try { 109 $manager->salary = 12; 110 $manager->save(); 111 $this->pass(); 112 } catch (Exception $e) { 113 $this->fail("Update failed [{$e->getMessage()}]."); 114 } 115 116 } 117 105 118 public function testUpdateUpdatesDataAcrossJoinedTablesTransparently() 106 119 { … … 184 197 $class->setColumn('cti_id as id', 'integer', 4, array('primary' => true, 'autoincrement' => true)); 185 198 $class->setColumn('cti_foo as foo', 'integer', 4); 186 $class->setColumn('cti_name as name', 'string', 50 );199 $class->setColumn('cti_name as name', 'string', 50, array('notnull' => true)); 187 200 $class->setColumn('dtype', 'integer', 2); 188 201 }