Changeset 4350

Show
Ignore:
Timestamp:
05/10/08 01:47:41 (14 months ago)
Author:
jwage
Message:

Added coverage for r1022

Location:
branches/0.11/tests
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/tests/Record/GeneratorTestCase.php

    r4075 r4350  
    6161        } 
    6262    } 
     63 
     64    public function testGeneratorComponentBinding2() 
     65    { 
     66        try { 
     67            $i = new I18nGeneratorComponentBinding(); 
     68            $i->name = 'test'; 
     69            $i->Translation['EN']->title = 'en test'; 
     70            $i->Translation['FR']->title = 'fr test'; 
     71            $i->save(); 
     72            $i->free(); 
     73 
     74            $this->pass(); 
     75        } catch (Exception $e) { 
     76            $this->fail($e->getMessage()); 
     77        } 
     78    } 
    6379} 
    6480 
  • branches/0.11/tests/run.php

    r4349 r4350  
    274274$record->addTestCase(new Doctrine_Record_Inheritance_TestCase()); 
    275275$record->addTestCase(new Doctrine_Record_Synchronize_TestCase()); 
     276$record->addTestCase(new Doctrine_Record_Generator_TestCase()); 
    276277$test->addTestCase($record); 
    277278