From: Seamus Lee Date: Wed, 10 Nov 2021 23:40:37 +0000 (+0000) Subject: [NFC] Additional Fix on UserDashBoard Tests to assign action value to dashboard X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=88718e714851ab7e777ef23e735fe163de21ab01;p=civicrm-core.git [NFC] Additional Fix on UserDashBoard Tests to assign action value to dashboard --- diff --git a/tests/phpunit/CRM/Contact/Page/View/UserDashBoardTest.php b/tests/phpunit/CRM/Contact/Page/View/UserDashBoardTest.php index 3e6298b846..ad602fd6d8 100644 --- a/tests/phpunit/CRM/Contact/Page/View/UserDashBoardTest.php +++ b/tests/phpunit/CRM/Contact/Page/View/UserDashBoardTest.php @@ -197,6 +197,7 @@ class CRM_Contact_Page_View_UserDashBoardTest extends CiviUnitTestCase { $dashboard = new CRM_Contact_Page_View_UserDashBoard(); $dashboard->_contactId = $this->contactID; $dashboard->assign('formTpl', NULL); + $dashboard->assign('action', CRM_Core_Action::VIEW); $dashboard->run(); $_REQUEST = []; }