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
869244ca
Commit
869244ca
authored
4 years ago
by
DaveD
Browse files
Options
Downloads
Patches
Plain Diff
failing test for php 7.4 and IDS
parent
a1012208
Branches
4.7.9-rc
Branches containing commit
Tags
4.7.9
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/InvokeTest.php
+33
-0
33 additions, 0 deletions
tests/phpunit/CRM/Core/InvokeTest.php
with
33 additions
and
0 deletions
tests/phpunit/CRM/Core/InvokeTest.php
0 → 100644
+
33
−
0
View file @
869244ca
<?php
/*
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC. All rights reserved. |
| |
| This work is published under the GNU AGPLv3 license with some |
| permitted exceptions and without any warranty. For full license |
| and copyright information, see https://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/
/**
* @group headless
*/
class
CRM_Core_InvokeTest
extends
CiviUnitTestCase
{
/**
* Test that no php errors come up invoking dashboard url for non-admins
* Motivation: This currently fails on php 7.4 because of IDS and magicquotes.
*/
public
function
testInvokeDashboardForNonAdmin
():
void
{
CRM_Core_Config
::
singleton
()
->
userPermissionClass
->
permissions
=
[
'access CiviCRM'
];
$_SERVER
[
'REQUEST_URI'
]
=
'civicrm/dashboard?reset=1'
;
$_GET
[
'q'
]
=
'civicrm/dashboard'
;
$item
=
CRM_Core_Invoke
::
getItem
([
'civicrm/dashboard?reset=1'
]);
ob_start
();
CRM_Core_Invoke
::
runItem
(
$item
);
ob_end_clean
();
}
}
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