Skip to content

Commit

Permalink
api_v3_ExtensionTest::testExtensionGet - Be a little less flaky
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
totten committed Feb 22, 2018
1 parent 7f854b8 commit c649b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit/api/v3/ExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function testExtensionGet() {
$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);
}

public function testGetMultipleExtensions() {
Expand Down

0 comments on commit c649b04

Please sign in to comment.