From ea6c4a1889b74e1ccae854a16dbf79498bbb19d6 Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 14 Jun 2007 21:26:45 +0000 Subject: [PATCH] minor bug fixes --- tests/Relation/OneToOneTestCase.php | 6 +++++- tests/RelationTestCase.php | 4 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/Relation/OneToOneTestCase.php b/tests/Relation/OneToOneTestCase.php index 7589a016f..28e7950af 100644 --- a/tests/Relation/OneToOneTestCase.php +++ b/tests/Relation/OneToOneTestCase.php @@ -35,7 +35,11 @@ class Doctrine_Relation_OneToOne_TestCase extends Doctrine_UnitTestCase public function prepareData() { } public function prepareTables() - { } + { + $this->tables = array('Record_City', 'Record_Country', 'SelfRefTest'); + + parent::prepareTables(); + } public function testOneToOneAggregateRelationWithAliasesIsSupported() { $city = new Record_City(); diff --git a/tests/RelationTestCase.php b/tests/RelationTestCase.php index 27fea1035..7de17e59b 100644 --- a/tests/RelationTestCase.php +++ b/tests/RelationTestCase.php @@ -69,9 +69,8 @@ class Doctrine_Relation_TestCase extends Doctrine_UnitTestCase { $this->assertTrue($rel instanceof Doctrine_Relation_LocalKey); } public function testManyToManyRelation() { - $this->manager->setAttribute(Doctrine::ATTR_CREATE_TABLES, false); $user = new User(); - + // test that join table relations can be initialized even before the association have been initialized try { $user->Groupuser; @@ -96,7 +95,6 @@ class Doctrine_Relation_TestCase extends Doctrine_UnitTestCase { $user = new User(); $this->assertTrue($user->getTable()->getRelation('Phonenumber') instanceof Doctrine_Relation_ForeignKey); - $this->manager->setAttribute(Doctrine::ATTR_CREATE_TABLES, true); } } class RelationTest extends Doctrine_Record