assign formTpl
authordemeritcowboy <demeritcowboy@hotmail.com>
Fri, 12 Nov 2021 19:51:47 +0000 (14:51 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Fri, 12 Nov 2021 19:51:47 +0000 (14:51 -0500)
tests/phpunit/CRM/Core/Page/HookTest.php

index 77d6a7e163d5049b5f12dcf41bb138bb134ce333..fc58945c3f652a02cd2259a41ba686ddf78720db 100644 (file)
@@ -80,6 +80,7 @@ class CRM_Core_Page_HookTest extends CiviUnitTestCase {
         'preProcess' => [],
       ];
       $page = new $pageName();
+      $page->assign('formTpl', NULL);
       ob_start();
       $page->run();
       ob_end_clean();
@@ -116,6 +117,7 @@ class CRM_Core_Page_HookTest extends CiviUnitTestCase {
       // Reset the counters
       $this->hookCount = ['pageRun' => []];
       $page = new $pageName();
+      $page->assign('formTpl', NULL);
       ob_start();
       $page->run();
       ob_end_clean();