wiki.techinc.nl/tests/phpunit/includes/api
Ammar Abdulhamid 7af5678847 API: Handle ContentHandler exception for content model mismatch
Ensure the content we are trying to save and the base content have
identical content models before proceeding to save so as to forestall
Exception that may be thrown by ContentHandler if it founds they're not.

There are two cases where the models are allowed to differ: Edit that
undoes content model change or edit that's meant to explicitly change
the model. The logic for these is handled separately and may succeed
or fail, but exception will not be thrown.

Bug: T255700
Change-Id: I8782732bb0fc3059693cd7035b7ebb43fd71d333
2020-09-04 03:41:58 +01:00
..
format MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
query MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
Validator WatchedItemStore: Enforce a maximum watchlist expiry duration 2020-05-22 00:15:23 -04:00
ApiBaseTest.php Replace all call_user_func(_array) in all tests 2020-06-06 18:41:20 +02:00
ApiBlockInfoTraitTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiBlockTest.php
ApiChangeContentModelTest.php Add @author tags I forgot to include 2020-04-11 08:13:48 +00:00
ApiCheckTokenTest.php
ApiClearHasMsgTest.php Use new TalkPageNotificationManager 2020-05-15 12:35:45 -04:00
ApiComparePagesTest.php Replace uses of Revision constants 2020-07-03 01:23:44 +00:00
ApiContinuationManagerTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiCSPReportTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
ApiDeleteTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiDisabledTest.php
ApiEditPageTest.php API: Handle ContentHandler exception for content model mismatch 2020-09-04 03:41:58 +01:00
ApiErrorFormatterTest.php
ApiLoginTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
ApiLogoutTest.php
ApiMainTest.php Introduce UserOptionsManager and DefaultOptionsManager 2020-04-28 15:42:43 -07:00
ApiMessageTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiModuleManagerTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiMoveTest.php WatchAction: avoid unnecessary UPDATEs when expiry is unchanged 2020-08-11 16:17:01 -04:00
ApiOpenSearchTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiOptionsTest.php
ApiPageSetTest.php PageUpdater: set DeprecatablePropertyArray to hard deprecate Revision 2020-06-30 15:59:57 +00:00
ApiParseTest.php Deprecate Skin::setupSkinUserCss 2020-08-09 02:09:08 +01:00
ApiProtectTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiPurgeTest.php
ApiQueryAllPagesTest.php
ApiQueryBlockInfoTraitTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiQueryBlocksTest.php
ApiQueryDisabledTest.php
ApiQueryInfoTest.php
ApiQueryLanguageinfoTest.php
ApiQueryPrefixSearchTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
ApiQueryRecentChangesIntegrationTest.php Replace uses and hard deprecate Revision::newFromTitle 2020-04-18 04:47:10 +00:00
ApiQuerySearchTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
ApiQuerySiteinfoTest.php Remove usages of Skin::getAllowedSkins. 2020-08-05 02:48:29 +01:00
ApiQueryWatchlistIntegrationTest.php Merge "ApiQueryWatchlist: set anon flag as false when relevant instead of omitting" 2020-08-07 19:56:49 +00:00
ApiQueryWatchlistRawIntegrationTest.php
ApiResultTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiRevisionDeleteTest.php Hard deprecate the rest of the Revision class 2020-07-02 09:02:02 +00:00
ApiRollbackTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiSetNotificationTimestampIntegrationTest.php
ApiStashEditTest.php API: Handle ContentHandler exception for content model mismatch 2020-09-04 03:41:58 +01:00
ApiTestCase.php Remove hard deprecated ApiTestCase::doLogin 2020-07-27 14:35:14 +00:00
ApiTestContext.php
ApiTokensTest.php
ApiUnblockTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
ApiUndeleteTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiUploadTest.php Add watchlist expiry support to applicable APIs 2020-07-13 18:18:15 -04:00
ApiUploadTestCase.php Use MediaWikiServices::getRepoGroup in api related classes 2020-04-11 23:58:00 +00:00
ApiUsageExceptionTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
ApiUserrightsTest.php
ApiWatchTest.php WatchedItemStore: Enforce a maximum watchlist expiry duration 2020-05-22 00:15:23 -04:00
generateRandomImages.php
MockApi.php
MockApiQueryBase.php
RandomImageGenerator.php
UserWrapper.php
words.txt