aboutsummaryrefslogtreecommitdiffstats
path: root/tests/common
diff options
context:
space:
mode:
authorTimo Tijhof <krinkle@fastmail.com>2023-11-01 00:44:47 +0000
committerTimo Tijhof <krinkle@fastmail.com>2024-07-05 19:28:14 +0100
commitfaf4cb33846978c32e6157682a8b06dd00faf3b1 (patch)
tree73eddff06c4d58dde15d9718325fed29801885b3 /tests/common
parentc86466f5dcf24c9ce51c482f1b7796bf511ad1d8 (diff)
downloadmediawikicore-faf4cb33846978c32e6157682a8b06dd00faf3b1.tar.gz
mediawikicore-faf4cb33846978c32e6157682a8b06dd00faf3b1.zip
content: Improve roundtrip tests for JavaScriptContent
* Re-use the same data provider explicitly instead of manually keeping them in sync. * Add test case names as array keys to improve debugging. * Widen `@covers` annotations in unit tests. Bug: T107289 Change-Id: I9a321400855ddd1f56334f6ecf85590fd8ed4aaf
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common/TestsAutoLoader.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/common/TestsAutoLoader.php b/tests/common/TestsAutoLoader.php
index 9e0e24bba656..0f2290a45587 100644
--- a/tests/common/TestsAutoLoader.php
+++ b/tests/common/TestsAutoLoader.php
@@ -129,6 +129,7 @@ $wgAutoloadClasses += [
'TextContentTest' => "$testDir/phpunit/includes/content/TextContentTest.php",
'TextContentHandlerIntegrationTest' => "$testDir/phpunit/includes/content/TextContentHandlerIntegrationTest.php",
'WikitextContentTest' => "$testDir/phpunit/includes/content/WikitextContentTest.php",
+ 'JavaScriptContentHandlerTest' => "$testDir/phpunit/includes/content/JavaScriptContentHandlerTest.php",
# tests/phpunit/includes/db
'DatabaseTestHelper' => "$testDir/phpunit/includes/db/DatabaseTestHelper.php",