Changeset 3530

Show
Ignore:
Timestamp:
01/16/08 21:02:19 (18 months ago)
Author:
guilhermeblanco
Message:

Fixed php errors in testcase

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/tests/I18nTestCase.php

    r3452 r3530  
    9494 
    9595    } 
    96      
     96 
     97 
    9798    public function testUpdatingI18nItems() 
    9899    { 
    99100        $i = Doctrine_Query::create()->query('FROM I18nTest')->getFirst(); 
    100          
     101 
    101102        $i->Translation['EN']->name = 'updated name'; 
    102103        $i->Translation['EN']->title = 'updated title'; 
    103104 
    104105        $i->Translation->save(); 
    105          
     106 
     107        $this->conn->clear(); 
     108 
     109        $t = Doctrine_Query::create()->from('I18nTestTranslation')->fetchOne(); 
     110 
    106111        $this->assertEqual($t->name, 'updated name'); 
    107112        $this->assertEqual($t->title, 'updated title'); 
    108113    } 
     114 
    109115 
    110116    public function testDataFetching()