[NFC] Fix test setup on a couple of tests to make them pass in php8
authorSeamus Lee <seamuslee001@gmail.com>
Wed, 16 Jun 2021 00:55:22 +0000 (00:55 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 16 Jun 2021 00:55:22 +0000 (00:55 +0000)
tests/phpunit/CRM/Contact/Page/AjaxTest.php
tests/phpunit/api/v3/ACLPermissionTest.php

index 6c6ce05fc05d5f5d349b16e72f18f322e9c2875b..2f14700b8f67786fdad34902d0715d351193240d 100644 (file)
@@ -34,9 +34,8 @@ class CRM_Contact_Page_AjaxTest extends CiviUnitTestCase {
     $_REQUEST['columns'] = [
       [
         'search' => [
-          'value' => [
-            'src' => 'first_name',
-          ],
+          'value' => 'first_name',
+          'regex' => FALSE,
         ],
         'data' => 'src',
       ],
index 35ef4147be834280453ee056b331a1866c508ca6..85afdb1accf6006d490306ce23dc92971d7365eb 100644 (file)
@@ -944,8 +944,7 @@ class api_v3_ACLPermissionTest extends CiviUnitTestCase {
     $this->assertEquals(1, $result['count']);
     $this->callAPIFailure('activity', 'getsingle', array_merge($params, [
       'id' => [
-        'IN',
-        [$activity2['id']],
+        'IN' => [$activity2['id']],
       ],
     ]));
   }