wiki.techinc.nl/tests/phpunit/includes/api
aude 2513086ec1 Add supportsDirectEditing methods to ContentHandler
This adds supportsDirectApiEditing and
supportsDirectEditing methods to ContentHandler. Both
return false by default for the ContentHandler base
class, and true for TextContentHandler and it's
derivatives. (everything in core)

Extension content types that directly extend
AbstractContent / ContentHandler, often / generally don't
support direct editing. EntityContent in Wikibase
and Flow boards are the two such content types currently
in gerrit-hosted extensions.

The use and direct settings of the allowNonTextContent
member variable is replaced by enableApiEditOverride and
a setter for that. The only place allowNonTextContent is
used in all of Wikimedia-hosted git repos is core itself
(EditPage and ApiEditPage), so should be safe to make
this change.

With this change, Wikibase can remove its ApiCheckCanExecute
hook handler that disallows editing there, and MobileFrontend
could check if direct editing is allowed before enabling it's
editing features, instead of Wikibase having to add
MobileFrontend hook handlers to disable the features.

Bug: T96382
Change-Id: I276cd6ecedf38108f1f2be16b38e699e8c5d2d0c
2015-04-17 15:55:20 +00:00
..
format API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
query Replace use of assertType with assertInternalType and assertInstanceOf 2015-04-09 01:15:44 -04:00
ApiBaseTest.php
ApiBlockTest.php
ApiContinuationManagerTest.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiCreateAccountTest.php Make ApiCreateAccount return camelcase statuses 2014-02-20 20:49:45 +05:30
ApiEditPageTest.php Add supportsDirectEditing methods to ContentHandler 2015-04-17 15:55:20 +00:00
ApiErrorFormatterTest.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiLoginTest.php Profile all external HTTP requests from MW 2015-03-03 20:54:30 -08:00
ApiMainTest.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiMessageTest.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiModuleManagerTest.php Add @covers tags to ApiModuleManagerTest 2014-09-08 10:52:10 +00:00
ApiOptionsTest.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiParseTest.php Pass phpcs-strict on some test files (5/x) 2014-04-24 18:51:45 +02:00
ApiPurgeTest.php Pass phpcs-strict on some test files (5/x) 2014-04-24 18:51:45 +02:00
ApiQueryAllPagesTest.php Cleanup a bunch of tests and add todos 2014-03-09 15:12:45 +01:00
ApiResultTest.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiRevisionDeleteTest.php Fix phpcs errors in tests dir 2014-08-17 22:57:09 +01:00
ApiTestCase.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
ApiTestCaseUpload.php tests: Clean up file headers 2015-04-01 00:17:12 +01:00
ApiTestContext.php Fixed some @params documentation (tests) 2014-04-17 20:43:42 +02:00
ApiTokensTest.php
ApiUnblockTest.php
ApiUploadTest.php tests: Clean up file headers 2015-04-01 00:17:12 +01:00
ApiWatchTest.php
generateRandomImages.php
MockApi.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
MockApiQueryBase.php API: Overhaul ApiResult, make format=xml not throw, and add json formatversion 2015-04-10 16:57:15 -04:00
PrefixUniquenessTest.php API: HTMLize and internationalize the help, add Special:ApiHelp 2014-10-10 10:46:39 -04:00
RandomImageGenerator.php Change @return to start with type 2014-08-20 20:35:41 +02:00
UserWrapper.php
words.txt