wiki.techinc.nl/tests/phpunit/includes/api
Brad Jorsch 78d1b8ebba API: Introduce "templated parameters"
With MCR coming up, ApiEditPage is going to need to be able to take
"text" and "contentmodel" parameters for each slot-role, and enumerating
such parameters for every possible slot would probably get rather
confusing as to what is required when, or at least long-winded in
repeating the exact same thing for every possible role.

So let's abstract it: we'll have an "editroles" parameter to specify which
slots are being edited, and ApiEditPage will just declare that
"text-{role}" and "contentmodel-{role}" parameters should exist for each
value of "editroles" in the submission.

Note this patch doesn't introduce anything that uses templated
parameters, just the functionality itself. For testing purposes you
might cherry pick I2d658e9a.

Bug: T174032
Change-Id: Ia19a1617b73067bfb1f0f16ccc57d471778b7361
2018-05-16 16:19:31 -04:00
..
format Convert OutputHandler functions to a class 2018-03-20 21:11:32 -07:00
query Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiBaseTest.php API: Introduce "templated parameters" 2018-05-16 16:19:31 -04:00
ApiBlockTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiCheckTokenTest.php Add tests for ApiCheckToken 2018-01-01 02:06:59 +02:00
ApiClearHasMsgTest.php Add message to the assert of ApiClearHasMsgTest 2018-01-03 04:29:23 +02:00
ApiComparePagesTest.php Merge "ApiComparePages: Add 'fromsection' and 'tosection' parameters" 2018-01-04 07:01:31 +00:00
ApiContinuationManagerTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ApiDeleteTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiDisabledTest.php Test ApiDisabled.php 2018-03-20 18:01:07 +02:00
ApiEditPageTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiErrorFormatterTest.php Update suppressWarning()/restoreWarning() calls 2018-02-10 08:50:12 +00:00
ApiLoginTest.php Improve test coverage for ApiLogin.php 2018-03-21 19:57:27 +02:00
ApiMainTest.php ApiMainTest: Fix typo 2018-04-12 13:00:35 -04:00
ApiMessageTest.php Switch to librarized version of TestingAccessWrapper 2017-04-20 14:15:57 +00:00
ApiModuleManagerTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ApiMoveTest.php Test ApiMove 2018-04-15 14:13:08 +03:00
ApiOpenSearchTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ApiOptionsTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ApiPageSetTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
ApiParseTest.php API: Add ApiParseTest case for 'styles' in getDefaultModules 2018-05-04 01:03:47 +01:00
ApiPurgeTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiQueryAllPagesTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiQueryRecentChangesIntegrationTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiQueryWatchlistIntegrationTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiQueryWatchlistRawIntegrationTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiResultTest.php Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
ApiRevisionDeleteTest.php Fix RevDel API output for formatversion=2 2016-12-19 11:48:49 -05:00
ApiSetNotificationTimestampIntegrationTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiStashEditTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiTestCase.php Merge "Test ApiUserrights" 2018-04-12 19:54:51 +00:00
ApiTestCaseUpload.php Drop deprecated EnableAPI and EnableWriteAPI settings 2018-04-18 00:30:34 +00:00
ApiTestContext.php
ApiTokensTest.php Make deprecated TestUser properties private 2016-06-22 15:43:54 +00:00
ApiUnblockTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiUploadTest.php Rename ApiTestCaseUpload 2018-03-16 18:40:38 +01:00
ApiUploadTestCase.php Drop deprecated EnableAPI and EnableWriteAPI settings 2018-04-18 00:30:34 +00:00
ApiUsageExceptionTest.php Add @covers tags API tests without them 2017-12-27 17:50:06 +00:00
ApiUserrightsTest.php Test ApiUserrights 2018-04-12 21:26:02 +03:00
ApiWatchTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
generateRandomImages.php Remove empty lines at begin of function, if, foreach, switch 2017-07-01 11:34:16 +00:00
MockApi.php API: i18n for warnings and errors 2016-12-06 10:20:48 -05:00
MockApiQueryBase.php API: i18n for warnings and errors 2016-12-06 10:20:48 -05:00
PrefixUniquenessTest.php
RandomImageGenerator.php build: Prepare for mediawiki/mediawiki-codesniffer to 0.9.0 2017-06-26 17:14:31 +00:00
UserWrapper.php Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
words.txt