wiki.techinc.nl/tests/phpunit
Reedy 2295da3004 Fix more incorrect casing of MediaWiki
Change-Id: I331e5636823a0beae8d804148f648cfaffd6a1f8
2024-02-19 14:35:34 +00:00
..
data test: Add PHPUnit tests for BmpHandler 2024-02-08 17:05:02 +00:00
docs
includes Fix more incorrect casing of MediaWiki 2024-02-19 14:35:34 +00:00
integration/includes tests: Add more use statements in namespaced classes 2024-02-18 21:31:02 +00:00
maintenance tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
mocks tests: Move Wikimedia tests into Wikimedia\Tests 2024-02-17 02:09:08 +00: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 "[Parsoid\Config\SiteConfig] enable Parsoid support for disabling magic links" 2024-02-18 23:35:27 +00:00
bootstrap.common.php Deprecate $wgCommandLineMode 2024-01-02 22:21:50 +01:00
bootstrap.integration.php phpunit: Deprecate suite.xml and composer phpunit:entrypoint 2023-12-21 08:22:35 +00:00
bootstrap.maintenance.php
bootstrap.php phpunit: Deprecate suite.xml and composer phpunit:entrypoint 2023-12-21 08:22:35 +00:00
DynamicPropertyTestHelper.php
getPHPUnitExtensionsAndSkins.php
HamcrestPHPUnitIntegration.php
MediaWikiCoversValidator.php
MediaWikiDeprecatedConfigPHPUnitExtension.php phpunit: Deprecate suite.xml and composer phpunit:entrypoint 2023-12-21 08:22:35 +00:00
MediaWikiGroupValidator.php
MediaWikiIntegrationTestCase.php Merge "Clean up tests" 2024-02-16 07:58:38 +00:00
MediaWikiLangTestCase.php
MediaWikiLoggerPHPUnitExtension.php
MediaWikiPHPUnitResultPrinter.php
MediaWikiTeardownPHPUnitExtension.php
MediaWikiTestCaseTrait.php
MediaWikiUnitTestCase.php
MWTestDox.php
phpunit.php Deprecate $wgCommandLineMode 2024-01-02 22:21:50 +01:00
README.md
ResourceLoaderTestCase.php tests: Namespace ResourceLoaderTestCase and friends 2024-02-16 21:32:22 +00:00
suite.xml phpunit: Deprecate suite.xml and composer phpunit:entrypoint 2023-12-21 08:22:35 +00:00
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