Stop setting undeclared, unused property in test
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 14 Jul 2023 02:48:45 +0000 (14:48 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 14 Jul 2023 02:48:45 +0000 (14:48 +1200)
tests/phpunit/CRM/Member/Form/Task/LabelTest.php

index faf5864ac854b8ad1102db6e630e9f0328b47bd9..3ef8c10957fc506c002764d4c31343804c65c441 100644 (file)
@@ -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();