Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(NFC) api_v3_ExtensionTest - Fix when executing on build with 25+ extensions #15892

Merged
merged 1 commit into from
Nov 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/phpunit/api/v3/ExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function testSingleExtensionGetWithReturnFields() {
* CRM-20532
*/
public function testExtensionGet() {
$result = $this->callAPISuccess('extension', 'get', []);
$result = $this->callAPISuccess('extension', 'get', ['options' => ['limit' => 0]]);
$testExtensionResult = $this->callAPISuccess('extension', 'get', ['key' => 'test.extension.manager.paymenttest']);
$this->assertNotNull($result['values'][$testExtensionResult['id']]['typeInfo']);
$this->assertTrue($result['count'] >= 6);
Expand All @@ -80,8 +80,8 @@ public function testExtensionGet() {
* Filtering by status=installed or status=uninstalled should produce different results.
*/
public function testExtensionGetByStatus() {
$installed = $this->callAPISuccess('extension', 'get', ['status' => 'installed']);
$uninstalled = $this->callAPISuccess('extension', 'get', ['status' => 'uninstalled']);
$installed = $this->callAPISuccess('extension', 'get', ['status' => 'installed', 'options' => ['limit' => 0]]);
$uninstalled = $this->callAPISuccess('extension', 'get', ['status' => 'uninstalled', 'options' => ['limit' => 0]]);

// If the filter works, then results should be strictly independent.
$this->assertEquals(
Expand All @@ -92,7 +92,7 @@ public function testExtensionGetByStatus() {
)
);

$all = $this->callAPISuccess('extension', 'get', []);
$all = $this->callAPISuccess('extension', 'get', ['options' => ['limit' => 0]]);
$this->assertEquals($all['count'], $installed['count'] + $uninstalled['count']);
}

Expand Down