dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1540bd2
)
Add $tablesUsed for ApiTestCase
author
Matthias Mullie
<git@mullie.eu>
Mon, 20 Oct 2014 11:57:11 +0000
(13:57 +0200)
committer
Matthias 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
patch
|
blob
|
history
diff --git
a/tests/phpunit/includes/api/ApiTestCase.php
b/tests/phpunit/includes/api/ApiTestCase.php
index
cd14194
..
811768d
100644
(file)
--- 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;