From 80dd65ba3e12075706dd27f36625289c840851ab Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 11 Jun 2021 07:05:45 +1000 Subject: [PATCH] [NFC] Fix phpunit9 deprecation issues on using assertType instead of more explicit assertIsArray or AssertIsInt --- tests/phpunit/CRM/Utils/versionCheckTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/CRM/Utils/versionCheckTest.php b/tests/phpunit/CRM/Utils/versionCheckTest.php index 09292b514b..108c9ffc0a 100644 --- a/tests/phpunit/CRM/Utils/versionCheckTest.php +++ b/tests/phpunit/CRM/Utils/versionCheckTest.php @@ -183,8 +183,8 @@ class CRM_Utils_versionCheckTest extends CiviUnitTestCase { $this->assertArrayHasKey('PPTypes', $stats); $this->assertArrayHasKey('entities', $stats); $this->assertArrayHasKey('extensions', $stats); - $this->assertType('array', $stats['entities']); - $this->assertType('array', $stats['extensions']); + $this->assertIsArray($stats['entities']); + $this->assertIsArray($stats['extensions']); // Assert $stats['domain_isoCode'] is correct. $this->assertEquals($country['iso_code'], $stats['domain_isoCode']); @@ -192,7 +192,7 @@ class CRM_Utils_versionCheckTest extends CiviUnitTestCase { $entity_names = []; foreach ($stats['entities'] as $entity) { $entity_names[] = $entity['name']; - $this->assertType('int', $entity['size'], "Stats entity {$entity['name']} has integer size?"); + $this->assertIsInt($entity['size'], "Stats entity {$entity['name']} has integer size?"); } $expected_entity_names = [ -- 2.25.1