From 869244ca22e43ccfc35f7bd9bd0d73bfc5197682 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Fri, 19 Mar 2021 22:58:11 -0400 Subject: [PATCH] failing test for php 7.4 and IDS --- tests/phpunit/CRM/Core/InvokeTest.php | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/phpunit/CRM/Core/InvokeTest.php 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(); + } + +} -- 2.25.1