mediawiki-extensions-Scribunto/tests/phpunit/Engines/LuaCommon
theknightwho a091b46d65 Use correct variable for error message in mw.loadJsonData
`mw.loadJsonData` in mw.lua throws an error if the input argument is
not a string. The error message should refer to the type of the input
argument `module`, not that of the variable `arg` (which is usually
undeclared, giving the type `nil`).

This also necessitates updating test `mw.loadJsonData, bad title (1)`
in CommonTests.lua, which checks for the error message if the input
is the number 0; the correct message should say "got number", not
"got nil".

Bug: T364987
Change-Id: I8362e91489a8ddc4c890e2799892f692c497c9b9
2024-05-15 14:05:32 +01:00
..
CommonTests-data-fail1.lua
CommonTests-data-fail2.lua
CommonTests-data-fail3.lua
CommonTests-data-fail4.lua
CommonTests-data-fail5.lua
CommonTests-data.json Add mw.loadJsonData() 2022-10-13 04:46:25 +00:00
CommonTests-data.lua
CommonTests-lib.lua
CommonTests.lua Use correct variable for error message in mw.loadJsonData 2024-05-15 14:05:32 +01:00
HashLibraryTest.php Add more @covers 2022-10-08 20:59:33 +01:00
HashLibraryTests.lua
HtmlLibraryTest.php Add more @covers 2022-10-08 20:59:33 +01:00
HtmlLibraryTests.lua
LanguageLibraryTest.php Use namespaced Title 2023-08-19 20:18:41 +02:00
LanguageLibraryTests.lua mw.language: add :toBcp47Code() method 2023-12-15 00:18:54 +00:00
LibraryUtilTest.php Add more @covers 2022-10-08 20:59:33 +01:00
LibraryUtilTests.lua
LuaCommonTest.php build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0 2024-03-10 23:46:30 +01:00
LuaCommonTestsFailLibrary.php Replace deprecated MWException 2023-06-09 14:43:44 +02:00
LuaCommonTestsLibrary.php Namespace tests 2022-09-30 00:59:00 +00:00
LuaDataProvider.php build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0 2024-03-10 23:46:30 +01:00
LuaEngineTestBase.php Use PHP's more recent ?? operator where it makes sense 2024-04-28 17:28:51 +00:00
LuaEngineTestHelper.php tests: Declare class properties in LuaEngineTestHelper 2023-10-06 20:19:22 +02:00
LuaEngineTestSkip.php Namespace tests 2022-09-30 00:59:00 +00:00
LuaEngineUnitTestBase.php Use PHP's more recent ?? operator where it makes sense 2024-04-28 17:28:51 +00:00
LuaEnvironmentComparisonTest.php Use namespaced Title 2023-08-19 20:18:41 +02:00
LuaInterpreterTestBase.php Update tests for PHPUnit 9.6 2023-11-22 15:18:47 +00:00
MessageLibraryTest.php Add more @covers 2022-10-08 20:59:33 +01:00
MessageLibraryTests.lua
SiteLibraryTest.php Add more @covers 2022-10-08 20:59:33 +01:00
SiteLibraryTests.lua Add test for mw.site.stylePath and mw.site.currentVersion 2023-12-29 23:23:21 +08:00
TestFramework.lua
TextLibraryTest.php Add more @covers 2022-10-08 20:59:33 +01:00
TextLibraryTests.lua Synchronize mw.text.nowiki() with wfEscapeWikiText in core 2024-02-15 05:29:36 +00:00
TitleLibraryTest.php Replace global configuration variables 2024-03-18 04:40:44 +00:00
TitleLibraryTests.lua mw.title: add pageLang property 2024-01-17 18:20:06 +00:00
UriLibraryTest.php Replace global configuration variables 2024-03-18 04:40:44 +00:00
UriLibraryTests.lua
UstringLibraryNormalizationTestProvider.php Namespace tests 2022-09-30 00:59:00 +00:00
UstringLibraryNormalizationTests.lua
UstringLibraryPureLuaTest.php Namespace tests 2022-09-30 00:59:00 +00:00
UstringLibraryTest.php Namespace tests 2022-09-30 00:59:00 +00:00
UstringLibraryTests.lua