Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
fd525a93
Unverified
Commit
fd525a93
authored
4 years ago
by
Seamus Lee
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #17262 from totten/5.26-test-sql-op
SyntaxConformanceTest::testSqlOperators - Fix failure on MySQL 8
parents
17a6ba93
5d60cab9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/phpunit/api/v3/SyntaxConformanceTest.php
+2
-1
2 additions, 1 deletion
tests/phpunit/api/v3/SyntaxConformanceTest.php
with
2 additions
and
1 deletion
tests/phpunit/api/v3/SyntaxConformanceTest.php
+
2
−
1
View file @
fd525a93
...
...
@@ -575,6 +575,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
];
// The testSqlOperators fails sporadically on MySQL 5.5, which is deprecated anyway.
// Re:^^^ => the failure was probably correct behavior, and test is now fixed, but yeah 5.5 is deprecated, and don't care enough to verify.
// Test data providers should be able to run in pre-boot environment, so we connect directly to SQL server.
require_once
'DB.php'
;
$db
=
DB
::
connect
(
CIVICRM_DSN
);
...
...
@@ -1104,7 +1105,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
}
$totalEntities
=
3
;
}
$entities
=
$this
->
callAPISuccess
(
$entityName
,
'get'
,
[
'options'
=>
[
'limit'
=>
0
]]);
$entities
=
$this
->
callAPISuccess
(
$entityName
,
'get'
,
[
'options'
=>
[
'limit'
=>
0
,
'sort'
=>
'id'
]]);
$entities
=
array_keys
(
$entities
[
'values'
]);
$this
->
assertGreaterThan
(
2
,
$totalEntities
);
$this
->
callAPISuccess
(
$entityName
,
'getsingle'
,
[
'id'
=>
[
'IN'
=>
[
$entities
[
0
]]]]);
...
...
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