From ff42bc9f90895a1f99046722368d2f836814428e Mon Sep 17 00:00:00 2001 From: zYne Date: Sat, 18 Nov 2006 20:27:09 +0000 Subject: [PATCH] --- tests/RelationManyToManyTestCase.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/RelationManyToManyTestCase.php b/tests/RelationManyToManyTestCase.php index 3a8e3fcee..c2f7bf7b3 100644 --- a/tests/RelationManyToManyTestCase.php +++ b/tests/RelationManyToManyTestCase.php @@ -312,7 +312,18 @@ class Doctrine_Relation_ManyToMany_TestCase extends Doctrine_UnitTestCase { $component = $component->getTable()->find($component->id); $this->assertEqual($component->RTC1->count(), 2); - + } + + public function testManyToManySimpleUpdate() { + $component = $this->connection->getTable('M2MTest')->find(1); + + $this->assertEqual($component->name, 2); + + $component->name = 'changed name'; + + $component->save(); + + $this->assertEqual($component->name, 'changed name'); } } ?>