Skip to content

Commit

Permalink
Merge pull request #22061 from demeritcowboy/formtpl2
Browse files Browse the repository at this point in the history
[NFC] php8 assign formTpl in HookTest test
  • Loading branch information
seamuslee001 authored Nov 12, 2021
2 parents 868e872 + b7ea755 commit d77cdd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/phpunit/CRM/Core/Page/HookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public function testFormsCallBuildFormOnce() {
'preProcess' => [],
];
$page = new $pageName();
$page->assign('formTpl', NULL);
ob_start();
$page->run();
ob_end_clean();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit d77cdd4

Please sign in to comment.