From 0f07cb138eb528510cc2da10df9cd6c9e3278902 Mon Sep 17 00:00:00 2001 From: Matthias Mullie Date: Mon, 20 Oct 2014 13:57:11 +0200 Subject: [PATCH] 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 --- tests/phpunit/includes/api/ApiTestCase.php | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.20.1