wiki.techinc.nl/tests/phpunit/includes/api
thiemowmde ea2f0b651e Replace generic new Exception with more generic ones
… or with $this->fail() from the PHPUnit TestCase base class.

I hope this makes the code more readable, i.e. communicate the
intention better. The output should be the same, i.e. the test fails
as before in case of an error.

Change-Id: Ied8a045141ac92d6af6398682bb5d9ca7ca88c49
2023-10-17 07:59:50 +00:00
..
format Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
query Improve the readability of test code by making the BlockActionInfo::ACTION_* constants public+internal 2023-10-12 10:17:19 +11:00
Validator Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
ApiBaseTest.php Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
ApiBlockInfoTraitTest.php tests: Use namespaced Wikimedia\Rdbms\IDatabase 2023-08-20 15:18:57 +02:00
ApiBlockTest.php tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
ApiChangeContentModelTest.php tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
ApiCheckTokenTest.php
ApiClearHasMsgTest.php Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
ApiComparePagesTest.php tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
ApiContinuationManagerTest.php
ApiCSPReportTest.php
ApiDeleteTest.php tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
ApiDisabledTest.php
ApiEditPageTest.php api: Make ApiEditPageTest stop using $originalRevId incorrectly 2023-09-26 08:54:57 +02:00
ApiErrorFormatterTest.php Reorg: Move Status to MediaWiki\Status\ 2023-08-25 15:44:17 +02:00
ApiLoginTest.php tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
ApiLogoutTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
ApiMainTest.php Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
ApiMessageTest.php
ApiMoveTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
ApiOpenSearchTest.php API: Replace deprecated calls to wfExpandUrl with UrlUtils::expand 2023-06-22 16:49:01 -04:00
ApiOptionsTest.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
ApiPageSetTest.php Namespace TitleValue under \MediaWiki\Title 2023-09-18 18:24:39 +01:00
ApiParseTest.php tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
ApiProtectTest.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiPurgeTest.php ApiPurge: report permission errors properly 2023-10-09 17:44:20 +00:00
ApiResultTest.php
ApiRevisionDeleteTest.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiRollbackTest.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiSetNotificationTimestampIntegrationTest.php Do not use UTPage directly in tests 2023-08-12 23:51:53 +02:00
ApiStashEditTest.php tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
ApiTestCase.php phpunit: Avoid TestUser in non-database tests 2023-07-29 14:26:50 +00:00
ApiTestContext.php Reorg: Move WebRequest to includes\Request 2023-09-11 21:44:34 +01:00
ApiUnblockTest.php tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
ApiUndeleteTest.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiUploadTest.php tests: api: Replace Title::newFromText with Title::makeTitle 2023-07-30 17:15:09 +02:00
ApiUploadTestCase.php Replace generic new Exception with more generic ones 2023-10-17 07:59:50 +00:00
ApiUsageExceptionTest.php
ApiUserrightsTest.php tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
ApiWatchTest.php Do not use UTPage directly in tests 2023-08-12 23:51:53 +02:00
generateRandomImages.php
MockApi.php
MockApiQueryBase.php
RandomImageGenerator.php Replace generic new Exception with more generic ones 2023-10-17 07:59:50 +00:00