From: Eileen McNaughton Date: Sun, 12 Mar 2023 22:46:46 +0000 (+1300) Subject: Php8.2 fix in test X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=82bfba74524a9a4b8aef40413d84d88e6716059d;p=civicrm-core.git Php8.2 fix in test --- diff --git a/tests/phpunit/CRM/Pledge/Form/SearchTest.php b/tests/phpunit/CRM/Pledge/Form/SearchTest.php index a074d68798..e23baab56d 100644 --- a/tests/phpunit/CRM/Pledge/Form/SearchTest.php +++ b/tests/phpunit/CRM/Pledge/Form/SearchTest.php @@ -8,8 +8,7 @@ class CRM_Pledge_Form_SearchTest extends CiviUnitTestCase { public function setUp(): void { parent::setUp(); - $this->individualID = $this->individualCreate(); - $this->pledgeCreate(['contact_id' => $this->individualID]); + $this->pledgeCreate(['contact_id' => $this->individualCreate()]); } public function tearDown(): void { @@ -25,7 +24,7 @@ class CRM_Pledge_Form_SearchTest extends CiviUnitTestCase { /** * Test submitted the search form. */ - public function testSearch() { + public function testSearch(): void { $form = new CRM_Pledge_Form_Search(); $_SERVER['REQUEST_METHOD'] = 'GET'; $form->controller = new CRM_Pledge_Controller_Search();