Add $tablesUsed for ApiTestCase
authorMatthias Mullie <git@mullie.eu>
Mon, 20 Oct 2014 11:57:11 +0000 (13:57 +0200)
committerMatthias Mullie <git@mullie.eu>
Mon, 20 Oct 2014 11:57:13 +0000 (13:57 +0200)
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

index cd14194..811768d 100644 (file)
@@ -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;