Add utility methods to TestSetup and call them from the bootstrap file. Also call the same method to load settings from MediaWikiIntegrationTestCase when invoked via the unit tests entry point. This also fixes a couple bug in the deferred setup scenario where setLoadTestClassesAndNamespaces wasn't called, and the error handler wasn't reset (T227900#9003435). Make MediaWikiIntegrationTestCase not try to load settings more than once. Trying to do so should probably be mostly harmless because of the require_once usage, but it's also unnecessary and this change avoids any chance of unwanted side effects. Also use MW_INSTALL_PATH instead of $IP in bootstrap.php. Bug: T227900 Change-Id: I7090976435e7e2d1264ee345e2670baaccf532ea
14 lines
307 B
PHP
14 lines
307 B
PHP
<?php
|
|
|
|
/**
|
|
* Bootstrapping for MediaWiki PHPUnit tests that allows running integration tests.
|
|
* This file is included by phpunit and is NOT in the global scope.
|
|
*
|
|
* @file
|
|
*/
|
|
|
|
require_once __DIR__ . '/bootstrap.common.php';
|
|
|
|
TestSetup::loadSettingsFiles();
|
|
|
|
TestSetup::maybeCheckComposerLockUpToDate();
|