From cfededd6e7be2d2f424b5506fd3c8ec474aacc8d Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 20 Sep 2007 19:57:13 +0000 Subject: [PATCH] --- tests/Relation/OneToOneTestCase.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tests/Relation/OneToOneTestCase.php b/tests/Relation/OneToOneTestCase.php index d4ac63122..6ddbf98de 100644 --- a/tests/Relation/OneToOneTestCase.php +++ b/tests/Relation/OneToOneTestCase.php @@ -40,8 +40,8 @@ class Doctrine_Relation_OneToOne_TestCase extends Doctrine_UnitTestCase parent::prepareTables(); } - - public function testOneToOneAggregateRelationWithAliasesIsSupported() + + public function testOneToOneAggregateRelationWithAliasesIsSupported() { $city = new Record_City(); $country = $city->Country; @@ -75,9 +75,9 @@ class Doctrine_Relation_OneToOne_TestCase extends Doctrine_UnitTestCase public function testUnsetRelation() { $user = new User(); - $user->name = "test"; + $user->name = 'test'; $email = new Email(); - $email->address = "test@test.com"; + $email->address = 'test@test.com'; $user->Email = $email; $user->save(); $this->assertTrue($user->Email instanceOf Email); @@ -85,19 +85,17 @@ class Doctrine_Relation_OneToOne_TestCase extends Doctrine_UnitTestCase $user->save(); $this->assertTrue($user->Email instanceOf Doctrine_Null); } - + public function testSavingRelatedObjects() { $user = new gnatUser(); - $user->name = "test"; + $user->name = 'test'; $email = new gnatEmail(); - $email->address = "test3@test.com"; + $email->address = 'test3@test.com'; $user->Email = $email; $user->save(); $this->assertTrue($user->Email instanceOf gnatEmail); - $this->assertTrue($user->foreign_id != 0); - $this->assertTrue($user->foreign_id != null); - $this->assertTrue($user->foreign_id == $user->Email->id); + $this->assertEqual($user->foreign_id, $user->Email->id); } }