wiki.techinc.nl/tests/phpunit/includes/api
Daimona Eaytoy 7a494d1fa4 tests: Upgrade PHPUnit from 8.5+ to 9.5+
* DeprecatedHooksTest: Don't use assertContains().
* Replace uses of deprecated asserts:
  - assertFileNotExists() -> assertFileDoesNotExist()
* Update hierarchy of MediaWikiPHPUnitResultPrinter, since ResultPrinter
  is an interface in PHPUnit 9.
* Remove temporary forward-compat methods.
* Remove directories that don't exist from tests/phpunit/suite.xml, since
  they now make PHPUnit exit:
   - tests/phpunit/skins, it used to have SideBarTest, then moved to
     tests/phpunit/includes/skins
   - tests/phpunit/documentation, it used to have ReleaseNotesTest, then
     moved to tests/phpunit/unit/documentation
* Update configuration with --migrate-configuration and reformat.
* Avoid redefining getMockBuilder() in
  ActionModuleBasedHandlerTestTrait, use a @method annotation instead.
* In RCCacheEntryFactoryTest, avoid using internal PHPUnit logic for
  HTML validation, and use native PHP methods instead. The code was
  copied from Xml::load (moved to \Xml\Loader::load in PHPUnit 9) and
  simplified for this use case.

Bug: T243600
Bug: T262076
Change-Id: I851b9158b73d0cfc315eed9d63b15c54b05895e3
2022-10-08 02:03:55 +02:00
..
format tests: Use Title::makeTitle instead of Title::newFromText 2022-09-23 21:53:11 +02:00
query tests: Use Title::makeTitle instead of Title::newFromText 2022-09-23 21:53:11 +02:00
Validator tests/api: Add TestUser::getAuthority and use it 2022-08-06 23:15:27 +02:00
ApiBaseTest.php tests: Replace assertRegExp with assertMatchesRegularExpression 2022-10-07 14:13:16 -04:00
ApiBlockInfoTraitTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
ApiBlockTest.php tests: Use overrideConfig(Value|Values) where needed 2022-07-12 22:24:50 +00:00
ApiChangeContentModelTest.php tests: Use Title::makeTitle instead of Title::newFromText 2022-09-23 21:53:11 +02:00
ApiCheckTokenTest.php
ApiClearHasMsgTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
ApiComparePagesTest.php tests: Use Title::makeTitle instead of Title::newFromText 2022-09-23 21:53:11 +02:00
ApiContinuationManagerTest.php
ApiCSPReportTest.php tests: Use overrideConfig(Value|Values) where needed 2022-07-12 22:24:50 +00:00
ApiDeleteTest.php tests: Use overrideConfig(Value|Values) where needed 2022-07-12 22:24:50 +00:00
ApiDisabledTest.php
ApiEditPageTest.php tests: Replace deprecated WikiPage::factory 2022-09-02 19:34:02 +00:00
ApiErrorFormatterTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
ApiLoginTest.php tests: Use overrideConfig(Value|Values) where needed 2022-07-12 22:24:50 +00:00
ApiLogoutTest.php Remove or replace usages of "sanity" 2021-11-21 19:35:49 +00:00
ApiMainTest.php tests: Use overrideConfig(Value|Values) where needed 2022-07-12 22:24:50 +00:00
ApiMessageTest.php Message: Remove deprecated format property 2021-09-03 09:21:12 -07:00
ApiMoveTest.php tests: Use overrideConfig(Value|Values) where needed 2022-07-12 22:24:50 +00:00
ApiOpenSearchTest.php Replace trivial usa of mock builder with createMock() shortcut 2022-07-15 16:43:48 +00:00
ApiOptionsTest.php tests: Use Title::makeTitle instead of Title::newFromText 2022-09-23 21:53:11 +02:00
ApiPageSetTest.php tests: Use overrideConfig(Value|Values) where needed 2022-07-12 22:24:50 +00:00
ApiParseTest.php tests: Upgrade PHPUnit from 8.5+ to 9.5+ 2022-10-08 02:03:55 +02:00
ApiProtectTest.php tests: Use overrideConfig(Value|Values) where needed 2022-07-12 22:24:50 +00:00
ApiPurgeTest.php API: Clean up ApiPurgeTest 2021-03-13 02:29:09 +00:00
ApiResultTest.php tests: Use Title::makeTitle instead of Title::newFromText 2022-09-23 21:53:11 +02:00
ApiRevisionDeleteTest.php ManualLogEntry::getComment() should always return string 2022-07-09 18:58:19 -04:00
ApiRollbackTest.php tests: Use overrideConfig(Value|Values) where needed 2022-07-12 22:24:50 +00:00
ApiSetNotificationTimestampIntegrationTest.php API: Fix result of action=setnotificationtimestamp for non-watched title 2022-04-25 17:35:22 +00:00
ApiStashEditTest.php build: Updating dependencies 2022-10-07 21:09:37 +03:00
ApiTestCase.php ApiTestCase: Drop testApiTestGroup forcing use of medium/large 2022-08-11 11:58:14 -04:00
ApiTestContext.php Allow passing mock Authority in API integration tests 2021-06-07 11:50:42 -07:00
ApiUnblockTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
ApiUndeleteTest.php tests: Use overrideConfig(Value|Values) where needed 2022-07-12 22:24:50 +00:00
ApiUploadTest.php tests: Remove resetServiceForTesting after overrideConfigValues 2022-07-27 23:08:27 +02:00
ApiUploadTestCase.php tests: Migrate setMwGlobals() to overrideConfigValue(s)() 2022-07-19 15:42:15 +01:00
ApiUsageExceptionTest.php Misc cleanup to api integration tests 2021-01-21 06:32:58 +00:00
ApiUserrightsTest.php tests: Migrate setMwGlobals() to overrideConfigValue(s)() 2022-07-19 15:42:15 +01:00
ApiWatchTest.php tests: Migrate setMwGlobals() to overrideConfigValue(s)() 2022-07-19 15:42:15 +01:00
generateRandomImages.php Replace some more isset() with shorter ?? syntax 2021-11-02 10:39:38 +01:00
MockApi.php
MockApiQueryBase.php
RandomImageGenerator.php Tests: Explicit cast to int in RandomImageGenerator test (php8 warnings) 2022-10-03 11:29:45 -07:00