Commit cfededd6 authored by zYne's avatar zYne

--no commit message

--no commit message
parent dc8280ab
...@@ -75,9 +75,9 @@ class Doctrine_Relation_OneToOne_TestCase extends Doctrine_UnitTestCase ...@@ -75,9 +75,9 @@ class Doctrine_Relation_OneToOne_TestCase extends Doctrine_UnitTestCase
public function testUnsetRelation() public function testUnsetRelation()
{ {
$user = new User(); $user = new User();
$user->name = "test"; $user->name = 'test';
$email = new Email(); $email = new Email();
$email->address = "test@test.com"; $email->address = 'test@test.com';
$user->Email = $email; $user->Email = $email;
$user->save(); $user->save();
$this->assertTrue($user->Email instanceOf Email); $this->assertTrue($user->Email instanceOf Email);
...@@ -89,15 +89,13 @@ class Doctrine_Relation_OneToOne_TestCase extends Doctrine_UnitTestCase ...@@ -89,15 +89,13 @@ class Doctrine_Relation_OneToOne_TestCase extends Doctrine_UnitTestCase
public function testSavingRelatedObjects() public function testSavingRelatedObjects()
{ {
$user = new gnatUser(); $user = new gnatUser();
$user->name = "test"; $user->name = 'test';
$email = new gnatEmail(); $email = new gnatEmail();
$email->address = "test3@test.com"; $email->address = 'test3@test.com';
$user->Email = $email; $user->Email = $email;
$user->save(); $user->save();
$this->assertTrue($user->Email instanceOf gnatEmail); $this->assertTrue($user->Email instanceOf gnatEmail);
$this->assertTrue($user->foreign_id != 0); $this->assertEqual($user->foreign_id, $user->Email->id);
$this->assertTrue($user->foreign_id != null);
$this->assertTrue($user->foreign_id == $user->Email->id);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment