aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes
diff options
context:
space:
mode:
authorJames D. Forrester <jforrester@wikimedia.org>2017-11-20 15:50:22 -0800
committerKrinkle <krinklemail@gmail.com>2018-04-18 00:30:34 +0000
commit225b462a50b545b1f100e0d51a6070b0766ce12a (patch)
tree039b6d0024cecaead80fdee45dd32abd77041b52 /tests/phpunit/includes
parent30ba8f52dc8827578ec7901207c9cbd00e44b76a (diff)
downloadmediawikicore-225b462a50b545b1f100e0d51a6070b0766ce12a.tar.gz
mediawikicore-225b462a50b545b1f100e0d51a6070b0766ce12a.zip
Drop deprecated EnableAPI and EnableWriteAPI settings
The siteinfo API response's 'writeapi' value is now hard-set to true, as are the ResourceLoader variables wgEnableAPI and wgEnableWriteAPI, to be deprecated later. Bug: T115414 Change-Id: I54ff9428b247ba203d67aba079149393f323d5a9
Diffstat (limited to 'tests/phpunit/includes')
-rw-r--r--tests/phpunit/includes/OutputPageTest.php1
-rw-r--r--tests/phpunit/includes/api/ApiTestCaseUpload.php1
-rw-r--r--tests/phpunit/includes/api/ApiUploadTestCase.php1
3 files changed, 0 insertions, 3 deletions
diff --git a/tests/phpunit/includes/OutputPageTest.php b/tests/phpunit/includes/OutputPageTest.php
index 88c585fe5cfc..81bbcd7ea419 100644
--- a/tests/phpunit/includes/OutputPageTest.php
+++ b/tests/phpunit/includes/OutputPageTest.php
@@ -673,7 +673,6 @@ class OutputPageTest extends MediaWikiTestCase {
$context->setConfig( new HashConfig( $config + [
'AppleTouchIcon' => false,
'DisableLangConversion' => true,
- 'EnableAPI' => false,
'EnableCanonicalServerLink' => false,
'Favicon' => false,
'Feed' => false,
diff --git a/tests/phpunit/includes/api/ApiTestCaseUpload.php b/tests/phpunit/includes/api/ApiTestCaseUpload.php
index 3670fad846cd..a4ff1f0e90cb 100644
--- a/tests/phpunit/includes/api/ApiTestCaseUpload.php
+++ b/tests/phpunit/includes/api/ApiTestCaseUpload.php
@@ -4,5 +4,4 @@
* For backward compatibility since 1.31
*/
abstract class ApiTestCaseUpload extends ApiUploadTestCase {
-
}
diff --git a/tests/phpunit/includes/api/ApiUploadTestCase.php b/tests/phpunit/includes/api/ApiUploadTestCase.php
index 3c7efd57682b..cf56052a55c8 100644
--- a/tests/phpunit/includes/api/ApiUploadTestCase.php
+++ b/tests/phpunit/includes/api/ApiUploadTestCase.php
@@ -12,7 +12,6 @@ abstract class ApiUploadTestCase extends ApiTestCase {
$this->setMwGlobals( [
'wgEnableUploads' => true,
- 'wgEnableAPI' => true,
] );
$this->clearFakeUploads();