wiki.techinc.nl/tests/phpunit
Bartosz Dziewoński 087e676cea Message: Add more tests for serialization and unserialization
Bug: T373719
Change-Id: I153b9ba9edf67d940ef6c7b1ab1fe9f806e534d7
2024-08-30 17:47:33 -04:00
..
data CodexModule: use list of i18n message keys from Codex package 2024-08-12 15:30:11 -07:00
docs
includes Message: Add more tests for serialization and unserialization 2024-08-30 17:47:33 -04:00
integration/includes Merge "Allow ContributionsSpecialPage to accept usemodwiki IP addresses" 2024-08-20 10:43:17 +00:00
maintenance Merge "Start on tests for update.php" 2024-08-19 17:01:48 +00:00
mocks Merge "Use variable-length argument lists instead of func_get_args()" 2024-08-18 10:28:17 +00:00
structure Merge "Deprecate ApiBase::makeMessage" 2024-08-16 18:17:01 +00:00
suites tests: Make use of ??= and ?? operators in various tests 2024-08-15 11:44:46 +02:00
tests tests: Make use of upstream NullLogger in tests 2024-08-15 11:58:13 +02:00
unit Message: Validate ScalarParam and ListParam types 2024-08-21 06:53:04 +02:00
bootstrap.common.php
bootstrap.integration.php
bootstrap.maintenance.php
bootstrap.php Add MediaWiki\Registration namespace to registration classes 2024-08-10 10:08:22 +00:00
DynamicPropertyTestHelper.php
getPHPUnitExtensionsAndSkins.php Add MediaWiki\Registration namespace to registration classes 2024-08-10 10:08:22 +00:00
HamcrestPHPUnitIntegration.php
MediaWikiCoversValidator.php
MediaWikiDeprecatedConfigPHPUnitExtension.php
MediaWikiGroupValidator.php
MediaWikiIntegrationTestCase.php tests: Make use of ??= and ?? operators in various tests 2024-08-15 11:44:46 +02:00
MediaWikiLangTestCase.php Use MediaWikiIntegrationTestCase::getConfVar in tests 2024-08-06 12:52:34 +00:00
MediaWikiLoggerPHPUnitExtension.php
MediaWikiPHPUnitResultPrinter.php
MediaWikiTeardownPHPUnitExtension.php
MediaWikiTestCaseTrait.php Merge "tests: Disallow using setFakeTime() in PHPUnit data providers" 2024-08-20 22:43:19 +00:00
MediaWikiUnitTestCase.php Add MediaWiki\Registration namespace to registration classes 2024-08-10 10:08:22 +00:00
MWTestDox.php
phpunit.php Add MediaWiki\Registration namespace to registration classes 2024-08-10 10:08:22 +00:00
README.md
ResourceLoaderTestCase.php
suite.xml
TestSelectQueryBuilder.php

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