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
a28c399c
Commit
a28c399c
authored
Jun 13, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ticket 330 closed.
parent
e1fb5e53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
68 deletions
+60
-68
Ticket330TestCase.php
tests/Ticket330TestCase.php
+60
-68
No files found.
tests/Ticket330TestCase.php
View file @
a28c399c
...
...
@@ -70,34 +70,26 @@ class Doctrine_Ticket330_TestCase extends Doctrine_UnitTestCase
$node2
->
save
();
$nodes
=
Doctrine_Query
::
create
()
->
select
(
'n.title, d.null_column, d.is_bool
'
)
->
select
(
'n.title, d.*
'
)
->
from
(
'stNode n, n.detail d'
)
->
orderby
(
'n.id'
)
->
execute
();
$prevCount
=
$this
->
dbh
->
count
();
foreach
(
$nodes
as
$node
)
{
if
(
$node
->
get
(
'title'
)
==
'first node'
)
{
$this
->
assertEqual
(
$node
->
detail
->
get
(
'is_bool'
),
true
);
$this
->
assertEqual
(
$node
->
detail
->
get
(
'null_column'
),
null
);
$this
->
assertEqual
(
$nodes
[
0
]
->
detail
->
get
(
'is_bool'
),
true
);
$this
->
assertEqual
(
$nodes
[
0
]
->
detail
->
get
(
'null_column'
),
null
);
// Unnecessary query is triggered on line before due to null value column.
$this
->
assertEqual
(
$this
->
dbh
->
count
(),
$prevCount
);
$prevCount
=
$this
->
dbh
->
count
();
}
else
{
$this
->
assertEqual
(
$node
->
detail
->
get
(
'null_column'
),
'value'
);
$this
->
assertEqual
(
$node
->
detail
->
get
(
'is_bool'
),
false
);
// Unecessary query is triggered on line before due to false value column
$this
->
assertEqual
(
$this
->
dbh
->
count
(),
$prevCount
);
}
}
$this
->
assertEqual
(
$this
->
dbh
->
count
(),
$prevCount
);
$this
->
assertEqual
(
$nodes
[
1
]
->
detail
->
get
(
'null_column'
),
'value'
);
$this
->
assertEqual
(
$nodes
[
1
]
->
detail
->
get
(
'is_bool'
),
false
);
// Unecessary query is triggered on line before due to false value column
$this
->
assertEqual
(
$this
->
dbh
->
count
(),
$prevCount
);
}
}
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