1
0
mirror of synced 2025-03-21 23:43:53 +03:00

added tests for updating I18n records, fixes #672

This commit is contained in:
zYne 2008-01-04 18:23:32 +00:00
parent bb980bb95f
commit d2bff7d31a

View File

@ -93,6 +93,19 @@ class Doctrine_I18n_TestCase extends Doctrine_UnitTestCase
$this->assertEqual($t->lang, 'EN');
}
public function testUpdatingI18nItems()
{
$i = Doctrine_Query::create()->query('FROM I18nTest')->getFirst();
$i->Translation['EN']->name = 'updated name';
$i->Translation['EN']->title = 'updated title';
$i->Translation->save();
$this->assertEqual($t->name, 'updated name');
$this->assertEqual($t->title, 'updated title');
}
public function testDataFetching()
{