[NFC] Additional Fix on UserDashBoard Tests to assign action value to dashboard
authorSeamus Lee <seamuslee001@gmail.com>
Wed, 10 Nov 2021 23:40:37 +0000 (23:40 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 10 Nov 2021 23:40:37 +0000 (23:40 +0000)
tests/phpunit/CRM/Contact/Page/View/UserDashBoardTest.php

index 3e6298b8469157cde932bfe0ec7dbd72bc974d4e..ad602fd6d8491bda5cadcb0752df77742b47b370 100644 (file)
@@ -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 = [];
   }