From: Eileen McNaughton Date: Fri, 14 Jul 2023 02:48:45 +0000 (+1200) Subject: Stop setting undeclared, unused property in test X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b3d653653ef87ebf9a61ac4cc2fc42c2594e80a2;p=civicrm-core.git Stop setting undeclared, unused property in test --- diff --git a/tests/phpunit/CRM/Member/Form/Task/LabelTest.php b/tests/phpunit/CRM/Member/Form/Task/LabelTest.php index faf5864ac8..3ef8c10957 100644 --- a/tests/phpunit/CRM/Member/Form/Task/LabelTest.php +++ b/tests/phpunit/CRM/Member/Form/Task/LabelTest.php @@ -28,7 +28,7 @@ class CRM_Member_Form_Task_LabelTest extends CiviUnitTestCase { $this->assertArrayHasKey(201, $tasks, print_r($tasks, TRUE)); $tasks = CRM_Member_Task::permissionedTaskTitles(CRM_Core_Permission::EDIT); $this->assertArrayHasKey(201, $tasks); - $membershipID = $this->contactMembershipCreate(['contact_id' => $this->individualCreate()]); + $this->contactMembershipCreate(['contact_id' => $this->individualCreate()]); /** @var CRM_Member_Form_Task_Label $form */ $form = $this->getFormObject('CRM_Member_Form_Task_Label', [ 'task' => 201, @@ -40,7 +40,6 @@ class CRM_Member_Form_Task_LabelTest extends CiviUnitTestCase { 'label_name' => 3475, ]; $form->preProcess(); - $form->ids = [$membershipID => $membershipID]; $form->buildForm(); try { $form->postProcess();