Merge "ApiTestCase: Drop testApiTestGroup forcing use of medium/large"
This commit is contained in:
commit
09d21a0acc
1 changed files with 0 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue