Whether a unit test has `@group Database` is irrelevant, since it will simply
not work if it relies on database access.
Change-Id: Ibe01d4912160ae44ca86ef6f7c3946501a8c067e
abstract class MediaWikiUnitTestCase extends TestCase {
use PHPUnit4And6Compat;
use MediaWikiCoversValidator;
- use MediaWikiGroupValidator;
-
- /**
- * @throws ReflectionException
- */
- protected function setUp() {
- parent::setUp();
- if ( $this->isTestInDatabaseGroup() ) {
- throw new \Exception( get_class( $this ) .
- ' extends MediaWikiUnitTestCase, and may not have the @group Database annotation.' );
- }
- }
}