Skip to content

Commit

Permalink
Merge pull request #22048 from demeritcowboy/session-status
Browse files Browse the repository at this point in the history
[NFC] php8 - set smarty null defaults for CRM_Core_SessionTest
  • Loading branch information
seamuslee001 authored Nov 12, 2021
2 parents cbbc517 + 532862d commit 5e37ded
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/phpunit/CRM/Core/SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ class CRM_Core_SessionTest extends CiviUnitTestCase {

public function setUp(): void {
CRM_Core_Smarty::singleton()->clearTemplateVars();
// set null defaults
foreach (['infoOptions', 'infoType', 'infoMessage', 'infoTitle'] as $info) {
CRM_Core_Smarty::singleton()->assign($info, NULL);
}
}

/**
Expand Down

0 comments on commit 5e37ded

Please sign in to comment.