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
5aaa598f
Commit
5aaa598f
authored
Aug 10, 2007
by
njero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More tests around the hasOne problem
parent
8d483750
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
TicketNjeroTestCase.php
tests/TicketNjeroTestCase.php
+14
-1
No files found.
tests/TicketNjeroTestCase.php
View file @
5aaa598f
...
...
@@ -138,6 +138,11 @@ class Doctrine_TicketNjero_TestCase extends Doctrine_UnitTestCase
$policy
->
save
();
$q
=
new
Doctrine_Query
();
# If I use
# $p = $q->from('PolicyN p')
# this test passes, but there is another issue just not reflected in this test yet, see "in my app" note below
$p
=
$q
->
from
(
'PolicyN p, p.RateN r, r.PolicyCodeN y, r.CoverageCodeN c, r.LiabilityCodeN l'
)
->
where
(
'(p.id = ?)'
,
array
(
'1'
))
->
execute
()
...
...
@@ -146,8 +151,16 @@ class Doctrine_TicketNjero_TestCase extends Doctrine_UnitTestCase
$this
->
assertEqual
(
$p
->
rate_id
,
1
);
$this
->
assertEqual
(
$p
->
RateN
->
id
,
1
);
$this
->
assertEqual
(
$p
->
RateN
->
policy_code
,
1
);
$this
->
assertEqual
(
$p
->
RateN
->
coverage_code
,
3
);
$this
->
assertEqual
(
$p
->
RateN
->
coverage_code
,
3
);
# fail
$this
->
assertEqual
(
$p
->
RateN
->
liability_code
,
1
);
$c
=
$p
->
RateN
->
coverage_code
;
$c2
=
$p
->
RateN
->
CoverageCodeN
->
code
;
$c3
=
$p
->
RateN
->
coverage_code
;
$this
->
assertEqual
(
$c
,
$c2
);
# fail
$this
->
assertEqual
(
$c
,
$c3
);
# in my app this fails as well, but I can't reproduce this
#echo "Values " . serialize(array($c, $c2, $c3));
}
}
?>
...
...
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