From b7ea75570ff659dff69f4ebb4d4055a9da8a276c Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Fri, 12 Nov 2021 14:51:47 -0500 Subject: [PATCH] assign formTpl --- tests/phpunit/CRM/Core/Page/HookTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/CRM/Core/Page/HookTest.php b/tests/phpunit/CRM/Core/Page/HookTest.php index 77d6a7e163d5..fc58945c3f65 100644 --- a/tests/phpunit/CRM/Core/Page/HookTest.php +++ b/tests/phpunit/CRM/Core/Page/HookTest.php @@ -80,6 +80,7 @@ public function testFormsCallBuildFormOnce() { 'preProcess' => [], ]; $page = new $pageName(); + $page->assign('formTpl', NULL); ob_start(); $page->run(); ob_end_clean(); @@ -116,6 +117,7 @@ public function testPagesCallPageRunOnce() { // Reset the counters $this->hookCount = ['pageRun' => []]; $page = new $pageName(); + $page->assign('formTpl', NULL); ob_start(); $page->run(); ob_end_clean();