From 084765118628226fe0504947b7e1c5d282c0b8c7 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 22 Feb 2018 12:26:12 -0800 Subject: [PATCH] api_v3_ExtensionTest::testExtensionGet - Be a little less flaky The test has a magic number which seems to be based on the number of extensions in the `drupal-clean` build profile -- which is basically the smallest number anyone might have. However, it gives false-negatives if you have any other extensions around. Make it a little less flaky. --- tests/phpunit/api/v3/ExtensionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/ExtensionTest.php b/tests/phpunit/api/v3/ExtensionTest.php index f9cdd0c992..0dc76726d8 100644 --- a/tests/phpunit/api/v3/ExtensionTest.php +++ b/tests/phpunit/api/v3/ExtensionTest.php @@ -89,7 +89,7 @@ class api_v3_ExtensionTest extends CiviUnitTestCase { $result = $this->callAPISuccess('extension', 'get', array()); $testExtensionResult = $this->callAPISuccess('extension', 'get', array('key' => 'test.extension.manager.paymenttest')); $this->assertNotNull($result['values'][$testExtensionResult['id']]['typeInfo']); - $this->assertEquals(6, $result['count']); + $this->assertTrue($result['count'] >= 6); } /** -- 2.25.1