(dev/core#4188) Update CRM tests for phpunit9 compatibility
authorTim Otten <totten@civicrm.org>
Tue, 28 Mar 2023 23:47:30 +0000 (16:47 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 28 Mar 2023 23:47:30 +0000 (16:47 -0700)
tests/phpunit/CRM/Upgrade/Incremental/BaseTest.php

index 188eb3ac59f34510fa5a339b4ea5850697d3f610..3d0d9aafb910485565f88d2a9e7788c3779aa891 100644 (file)
@@ -203,13 +203,13 @@ class CRM_Upgrade_Incremental_BaseTest extends CiviUnitTestCase {
       ],
     ]);
     $savedSearch = $this->callAPISuccessGetSingle('SavedSearch', []);
-    $this->assertContains('6', array_keys($savedSearch['form_values']));
+    $this->assertContainsEquals('6', array_keys($savedSearch['form_values']));
     $this->assertEquals('membership_join_date_relative', $savedSearch['form_values'][6][0]);
     $this->assertEquals('this.day', $savedSearch['form_values'][6][2]);
-    $this->assertContains('7', array_keys($savedSearch['form_values']));
+    $this->assertContainsEquals('7', array_keys($savedSearch['form_values']));
     $this->assertEquals('membership_start_date_relative', $savedSearch['form_values'][7][0]);
     $this->assertEquals('this.week', $savedSearch['form_values'][7][2]);
-    $this->assertContains('8', array_keys($savedSearch['form_values']));
+    $this->assertContainsEquals('8', array_keys($savedSearch['form_values']));
     $this->assertEquals('membership_end_date_relative', $savedSearch['form_values'][8][0]);
     $this->assertEquals('this.week', $savedSearch['form_values'][8][2]);
   }