From: demeritcowboy Date: Sat, 20 Mar 2021 02:58:11 +0000 (-0400) Subject: failing test for php 7.4 and IDS X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=869244ca22e43ccfc35f7bd9bd0d73bfc5197682;p=civicrm-core.git failing test for php 7.4 and IDS --- diff --git a/tests/phpunit/CRM/Core/InvokeTest.php b/tests/phpunit/CRM/Core/InvokeTest.php new file mode 100644 index 0000000000..a78add461d --- /dev/null +++ b/tests/phpunit/CRM/Core/InvokeTest.php @@ -0,0 +1,33 @@ +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(); + } + +}