Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
cfededd6
Commit
cfededd6
authored
Sep 20, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
dc8280ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
OneToOneTestCase.php
tests/Relation/OneToOneTestCase.php
+8
-10
No files found.
tests/Relation/OneToOneTestCase.php
View file @
cfededd6
...
...
@@ -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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment