wiki.techinc.nl/tests/phpunit
2024-02-28 15:17:40 +00:00
..
data ResourceLoader: Fix regression of color mapping in Less.php 2024-02-25 23:33:12 +03:00
docs
includes Merge "Namespace includes/cache" 2024-02-28 15:10:38 +00:00
integration/includes Merge "Remove wgTemporaryParsoidHandlerParserCacheWriteRatio config" 2024-02-28 15:17:40 +00:00
maintenance maintenance: add test for GetLagTimes.php 2024-02-27 19:08:00 +01:00
mocks Namespace includes/cache 2024-02-20 10:28:03 -05:00
structure Clean up tests 2024-02-12 09:25:25 +01:00
suites tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
tests tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
unit Merge "Namespace includes/cache" 2024-02-28 15:10:38 +00:00
bootstrap.common.php
bootstrap.integration.php
bootstrap.maintenance.php
bootstrap.php phpunit bootstrap: disable XDebug before invoking getPHPUnitExtensionsAndSkins.php 2024-02-21 20:12:07 +01:00
DynamicPropertyTestHelper.php
getPHPUnitExtensionsAndSkins.php
HamcrestPHPUnitIntegration.php
MediaWikiCoversValidator.php
MediaWikiDeprecatedConfigPHPUnitExtension.php
MediaWikiGroupValidator.php
MediaWikiIntegrationTestCase.php rdbms: replace truncate() with simpler truncateTable() method 2024-02-20 09:00:43 -08:00
MediaWikiLangTestCase.php
MediaWikiLoggerPHPUnitExtension.php
MediaWikiPHPUnitResultPrinter.php
MediaWikiTeardownPHPUnitExtension.php
MediaWikiTestCaseTrait.php tests: Add replacement for assertions deprecated in PHPUnit 9.6 2024-02-23 22:09:45 +01:00
MediaWikiUnitTestCase.php
MWTestDox.php
phpunit.php
README.md
ResourceLoaderTestCase.php tests: Namespace ResourceLoaderTestCase and friends 2024-02-16 21:32:22 +00:00
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