Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
11cbc6ab
Commit
11cbc6ab
authored
15 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch #c960657: rollback of double commit. It blame the network at Do It With Drupal. ;-)
parent
9b74fbaa
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/simpletest/tests/database_test.test
+0
-28
0 additions, 28 deletions
modules/simpletest/tests/database_test.test
with
0 additions
and
28 deletions
modules/simpletest/tests/database_test.test
+
0
−
28
View file @
11cbc6ab
...
...
@@ -1908,34 +1908,6 @@ class DatabaseSelectComplexTestCase extends DatabaseTestCase {
$this
->
assertEqual
(
$count
,
4
,
t
(
'Counted the correct number of records.'
));
}
/**
* Test that countQuery properly removes 'all_fields' statements and
* ordering clauses.
*/
function
testCountQueryRemovals
()
{
$query
=
db_select
(
'test'
);
$query
->
fields
(
'test'
);
$query
->
orderBy
(
'name'
);
$count
=
$query
->
countQuery
();
// Check that the 'all_fields' statement is handled properly.
$tables
=
$query
->
getTables
();
$this
->
assertEqual
(
$tables
[
'test'
][
'all_fields'
],
1
,
t
(
'Query correctly sets \'all_fields\' statement.'
));
$tables
=
$count
->
getTables
();
$this
->
assertFalse
(
isset
(
$tables
[
'test'
][
'all_fields'
]),
t
(
'Count query correctly unsets \'all_fields\' statement.'
));
// Check that the ordering clause is handled properly.
$orderby
=
$query
->
getOrderBy
();
$this
->
assertEqual
(
$orderby
[
'name'
],
'ASC'
,
t
(
'Query correctly sets ordering clause.'
));
$orderby
=
$count
->
getOrderBy
();
$this
->
assertFalse
(
isset
(
$orderby
[
'name'
]),
t
(
'Count query correctly unsets ordering caluse.'
));
// Make sure that the count query works.
$count
=
$count
->
execute
()
->
fetchField
();
$this
->
assertEqual
(
$count
,
4
,
t
(
'Counted the correct number of records.'
));
}
/**
* Confirm that we can properly nest conditional clauses.
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment