From 118ce7f575722a0cd866d30716852e5d3eef09a5 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 16 Jun 2021 00:55:22 +0000 Subject: [PATCH] [NFC] Fix test setup on a couple of tests to make them pass in php8 --- tests/phpunit/CRM/Contact/Page/AjaxTest.php | 5 ++--- tests/phpunit/api/v3/ACLPermissionTest.php | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/CRM/Contact/Page/AjaxTest.php b/tests/phpunit/CRM/Contact/Page/AjaxTest.php index 6c6ce05fc0..2f14700b8f 100644 --- a/tests/phpunit/CRM/Contact/Page/AjaxTest.php +++ b/tests/phpunit/CRM/Contact/Page/AjaxTest.php @@ -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', ], diff --git a/tests/phpunit/api/v3/ACLPermissionTest.php b/tests/phpunit/api/v3/ACLPermissionTest.php index 35ef4147be..85afdb1acc 100644 --- a/tests/phpunit/api/v3/ACLPermissionTest.php +++ b/tests/phpunit/api/v3/ACLPermissionTest.php @@ -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']], ], ])); } -- 2.25.1