Merge "ApiTestCase: Drop testApiTestGroup forcing use of medium/large"

This commit is contained in:
jenkins-bot 2022-08-29 13:49:16 +00:00 committed by Gerrit Code Review
commit 09d21a0acc

View file

@ -3,8 +3,6 @@
use MediaWiki\MediaWikiServices;
use MediaWiki\Permissions\Authority;
use MediaWiki\Session\SessionManager;
use PHPUnit\Framework\Assert;
use PHPUnit\Util\Test;
abstract class ApiTestCase extends MediaWikiLangTestCase {
protected static $apiUrl;
@ -183,20 +181,6 @@ abstract class ApiTestCase extends MediaWikiLangTestCase {
);
}
/**
* @coversNothing
*/
public function testApiTestGroup() {
$groups = Test::getGroups( static::class );
$constraint = Assert::logicalOr(
$this->contains( 'medium' ),
$this->contains( 'large' )
);
$this->assertThat( $groups, $constraint,
'ApiTestCase::setUp can be slow, tests must be "medium" or "large"'
);
}
/**
* Expect an ApiUsageException to be thrown with the given parameters, which are the same as
* ApiUsageException::newWithMessage()'s parameters. This allows checking for an exception