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
bc70df33
Unverified
Commit
bc70df33
authored
4 years ago
by
Seamus Lee
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #17909 from seamuslee001/update_dao_test
[NFC] Update DAO test for 5.27
parents
440ee692
068b3844
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/phpunit/CRM/Core/DAOTest.php
+5
-5
5 additions, 5 deletions
tests/phpunit/CRM/Core/DAOTest.php
with
5 additions
and
5 deletions
tests/phpunit/CRM/Core/DAOTest.php
+
5
−
5
View file @
bc70df33
...
...
@@ -520,9 +520,9 @@ class CRM_Core_DAOTest extends CiviUnitTestCase {
// Hack a different db version which will trigger getSupportedFields to filter out newer fields
\CRM_Core_DAO
::
$_dbColumnValueCache
[
'CRM_Core_DAO_Domain'
][
'id'
][
1
][
'version'
]
=
'5.26.0'
;
$custom
Group
Fields
=
CRM_Core_DAO_Custom
Group
::
getSupportedFields
();
// '
icon
' was added in 5.2
8
$this
->
assertArrayNotHasKey
(
'
icon
'
,
$custom
Group
Fields
);
$custom
Field
Fields
=
CRM_Core_DAO_Custom
Field
::
getSupportedFields
();
// '
serialize
' was added in 5.2
7
$this
->
assertArrayNotHasKey
(
'
serialize
'
,
$custom
Field
Fields
);
// Remove domain version override:
\CRM_Core_DAO
::
$_dbColumnValueCache
=
NULL
;
...
...
@@ -531,8 +531,8 @@ class CRM_Core_DAOTest extends CiviUnitTestCase {
// Fields should be indexed by name not unique_name (which is "activity_id")
$this
->
assertEquals
(
'id'
,
$activityFields
[
'id'
][
'name'
]);
$custom
Group
Fields
=
CRM_Core_DAO_Custom
Group
::
getSupportedFields
();
$this
->
assertArrayHasKey
(
'
icon
'
,
$custom
Group
Fields
);
$custom
Field
Fields
=
CRM_Core_DAO_Custom
Field
::
getSupportedFields
();
$this
->
assertArrayHasKey
(
'
serialize
'
,
$custom
Field
Fields
);
\CRM_Core_Config
::
singleton
()
->
userPermissionClass
->
permissions
=
[
'access CiviCRM'
,
'view all contacts'
];
$contactFields
=
CRM_Contact_DAO_Contact
::
getSupportedFields
();
...
...
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