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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
836d4634
Commit
836d4634
authored
Jun 11, 2015
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2471609
by jcnventura, pguillard: FilterTest testFilterQuery wrong assert message
parent
8d9f1eaf
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/views/src/Tests/Plugin/FilterTest.php
+5
-4
5 additions, 4 deletions
core/modules/views/src/Tests/Plugin/FilterTest.php
with
5 additions
and
4 deletions
core/modules/views/src/Tests/Plugin/FilterTest.php
+
5
−
4
View file @
836d4634
...
...
@@ -88,7 +88,8 @@ public function testFilterQuery() {
$this
->
assertIdentical
(
$view
->
filter
[
'test_filter'
]
->
operator
,
'='
);
$this
->
assertIdentical
(
$view
->
filter
[
'test_filter'
]
->
value
,
'John'
);
// Check that we have some results.
// Check that we have a single element, as a result of applying the '= John'
// filter.
$this
->
assertEqual
(
count
(
$view
->
result
),
1
,
format_string
(
'Results were returned. @count results.'
,
array
(
'@count'
=>
count
(
$view
->
result
))));
$view
->
destroy
();
...
...
@@ -113,9 +114,9 @@ public function testFilterQuery() {
$this
->
assertIdentical
(
$view
->
filter
[
'test_filter'
]
->
operator
,
'<>'
);
$this
->
assertIdentical
(
$view
->
filter
[
'test_filter'
]
->
value
,
'John'
);
//
Test that no nodes have been returned (Only 'page' type nodes should
//
exist)
.
$this
->
assertEqual
(
count
(
$view
->
result
),
4
,
format_string
(
'
No r
esults were returned. @count results.'
,
array
(
'@count'
=>
count
(
$view
->
result
))));
//
Check if we have the other elements in the dataset, as a result of
//
applying the '<> John' filter
.
$this
->
assertEqual
(
count
(
$view
->
result
),
4
,
format_string
(
'
R
esults were returned. @count results.'
,
array
(
'@count'
=>
count
(
$view
->
result
))));
$view
->
destroy
();
$view
->
initDisplay
();
...
...
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