Show
Ignore:
Timestamp:
02/07/08 10:40:27 (11 months ago)
Author:
romanb
Message:

Joined strategy bugfix and cosmetics.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/Inheritance/JoinedTestCase.php

    r3701 r3705  
    103103    } 
    104104     
     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     
    105118    public function testUpdateUpdatesDataAcrossJoinedTablesTransparently() 
    106119    { 
     
    184197        $class->setColumn('cti_id as id', 'integer', 4, array('primary' => true, 'autoincrement' => true)); 
    185198        $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)); 
    187200        $class->setColumn('dtype', 'integer', 2); 
    188201    }