From 79d5202a5d0597b83279de1ec1dad41652c63c91 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 10 May 2017 07:54:29 +1000 Subject: [PATCH] Add test of retriving multiple extensions and fix test for Jenkins --- tests/phpunit/api/v3/ExtensionTest.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/ExtensionTest.php b/tests/phpunit/api/v3/ExtensionTest.php index cd26011617..62ca11fa81 100644 --- a/tests/phpunit/api/v3/ExtensionTest.php +++ b/tests/phpunit/api/v3/ExtensionTest.php @@ -82,13 +82,19 @@ class api_v3_ExtensionTest extends CiviUnitTestCase { /** * Test Extension Get resturns detailed information + * Note that this is likely to fail locally but will work on Jenkins due to the result count check * CRM-20532 */ public function testExtesnionGet() { $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(11, $result['count']); + $this->assertEquals(6, $result['count']); + } + + public function testGetMultipleExtensions() { + $result = $this->callAPISuccess('extension', 'get', array('key' => array('test.extension.manager.paymenttest', 'test.extension.manager.moduletest'))); + $this->assertEquals(2, $result['count']); } } -- 2.25.1