Re-arrenge order of statements to avoid conflicts
This commit is contained in:
parent
b08d722cdc
commit
8957624564
@ -788,14 +788,13 @@ class Doctrine_Record_TestCase extends Doctrine_UnitTestCase
|
|||||||
|
|
||||||
// REPLACING OLD ASSOCIATED REFERENCE
|
// REPLACING OLD ASSOCIATED REFERENCE
|
||||||
$user->Group[1] = $group1;
|
$user->Group[1] = $group1;
|
||||||
$user->save();
|
|
||||||
|
|
||||||
$user->Group[0] = $group2;
|
$user->Group[0] = $group2;
|
||||||
$user->save();
|
$user->save();
|
||||||
|
|
||||||
|
$user = $this->objTable->find(5);
|
||||||
$this->assertEqual($user->Group->count(), 2);
|
$this->assertEqual($user->Group->count(), 2);
|
||||||
$this->assertEqual($user->Group[0]->identifier(), $group2->identifier());
|
$this->assertEqual($user->Group[0]->identifier(), $group1->identifier());
|
||||||
$this->assertEqual($user->Group[1]->identifier(), $group1->identifier());
|
$this->assertEqual($user->Group[1]->identifier(), $group2->identifier());
|
||||||
|
|
||||||
|
|
||||||
$group3 = $gf->find(3);
|
$group3 = $gf->find(3);
|
||||||
|
Loading…
Reference in New Issue
Block a user