From: Matthias Mullie Date: Mon, 20 Oct 2014 11:57:11 +0000 (+0200) Subject: Add $tablesUsed for ApiTestCase X-Git-Tag: 1.31.0-rc.0~13565^2 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=0f07cb138eb528510cc2da10df9cd6c9e3278902;p=lhc%2Fweb%2Fwiklou.git Add $tablesUsed for ApiTestCase This test creates 2 TestUser objects on setUp. Due to recent changes in TestUser, this isn't even possible anymore if MediaWikiTestCase hasn't setupTestDB() properly. Change-Id: Idadfb94bd48270ad085cfece2bf17024ed9d97cd --- diff --git a/tests/phpunit/includes/api/ApiTestCase.php b/tests/phpunit/includes/api/ApiTestCase.php index cd141947b5..811768db58 100644 --- a/tests/phpunit/includes/api/ApiTestCase.php +++ b/tests/phpunit/includes/api/ApiTestCase.php @@ -8,6 +8,11 @@ abstract class ApiTestCase extends MediaWikiLangTestCase { */ protected $apiContext; + /** + * @var array + */ + protected $tablesUsed = array( 'user', 'user_groups', 'user_properties' ); + protected function setUp() { global $wgServer;