wiki.techinc.nl/tests/phpunit
Umherirrender 66ec11f56a tests: Avoid array_combine in ApiTestCase::doApiRequest
Also in case of null nothing changed on the key,
so skip that array handling

Change-Id: I7df8452654d2ecab22c555cbbdc46158f26a4dd1
2023-04-28 17:17:03 +02:00
..
data Merge "ResourceLoader: Descriptive error for Less imports from codex-design-tokens" 2023-04-11 02:04:01 +00:00
docs
includes tests: Avoid array_combine in ApiTestCase::doApiRequest 2023-04-28 17:17:03 +02:00
integration/includes Rest: Migrate rest of handlers to IConnectionProvider 2023-04-20 14:38:39 +02:00
maintenance Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
mocks Fix some typos 2023-03-21 15:58:09 +01:00
structure ResourceLoader: Add structure test for ResourceLoader::respond() 2023-04-10 18:18:54 -07:00
suites ParserTestRunner: Additional refactoring and cleanup 2023-04-11 16:47:40 -05:00
tests Make use of MainConfigNames references in a few more places 2023-04-21 11:11:44 +02:00
unit Merge "mime: Improve code coverage by adding new test case" 2023-04-27 07:14:10 +00:00
bootstrap.maintenance.php
bootstrap.php phpunit: Check if composer dependencies are up-to-date 2023-03-09 18:26:06 -05:00
HamcrestPHPUnitIntegration.php
LessFileCompilationTest.php
MediaWikiCliOptions.php
MediaWikiCoversValidator.php
MediaWikiGroupValidator.php
MediaWikiIntegrationTestCase.php Reorg: Move SiteStats*.php to SiteStats/ 2023-04-27 01:16:29 +02:00
MediaWikiLangTestCase.php
MediaWikiLoggerPHPUnitExtension.php phpunit: Add PHPUNIT_LOGS flag 2023-02-08 22:15:32 -08:00
MediaWikiPHPUnitResultPrinter.php
MediaWikiTestCaseTrait.php
MediaWikiUnitTestCase.php AutoLoader: Drop support for $wgAutoloadAttemptLowercase 2022-12-04 02:38:57 -05:00
MWTestDox.php
phpunit.php phpunit: Check if composer dependencies are up-to-date 2023-03-09 18:26:06 -05:00
README.md
ResourceLoaderTestCase.php ResourceLoader: Add structure test for ResourceLoader::respond() 2023-04-10 18:18:54 -07:00
suite.xml phpunit: Lower report limit to 10 slowest tests 2023-03-09 14:08:38 +01:00

MediaWiki PHPUnit tests

WARNING: Integration tests may be destructive and alter or remove parts of your local database. We try to use temporary tables where possible, but you must never run tests on a production server or on a wiki where you don't want to lose data.

Running tests

If you haven't already, run composer update (specifically without --no-dev) in the MediaWiki core directory. This will install PHPUnit.

To read about how to run specific tests, refer to:

https://www.mediawiki.org/wiki/Manual:PHP_unit_testing/Running_the_tests

Writing tests

A guide to writing PHPUnit tests for MediaWiki can be found at:

https://www.mediawiki.org/wiki/Manual:PHP_unit_testing