wiki.techinc.nl/tests/phpunit/data
Dreamy Jazz 58311b0a8d Use fake maintenance scripts in MaintenanceRunnerTest where necessary
Why:
* The MaintenanceRunnerTest class tests using real maintenance
  scripts and the code being tested can include the maintenance
  script files.
* However, if running all tests together (such as when generating
  test coverage) the maintenance scripts may have already been
  loaded by integration tests that exist for those scripts.
* Instead of fixing the specific instances, we should instead
  ensure that (where necessary) the MaintenanceRunnerTest tests
  using fake maintenance scripts only loaded by that test class.
* Doing this prevents the files from being loaded anywhere else
  and ensures that the tests should not fail in this way again.

What:
* Update MaintenanceRunner::expandScriptFile to move the use of
  MS_INSTALL_PATH to a protected method that can then be mocked
  in MaintenanceRunnerTest.
* Update MaintenanceRunnerTest to use fake maintenance scripts
  where necessary. This includes:
** No longer setting the current working directory as the
   MW_INSTALL_PATH, but instead set it as __DIR__.
** Creating several fake maintenance scripts to replace the uses
   of the real ones.
** Updating the data providers to reflect the changes.

Bug: T371188
Change-Id: Ifacdcb8de5af53d2d5f4ed354af0d209384d7325
2024-08-08 13:02:22 +00:00
..
autoloader
categoriesrdf
composer Stop supporting composer 1.x 2024-01-24 22:19:38 +00:00
css ResourceLoader: Remove ResourcesTest::testCommentedLocalFileReferences 2023-10-20 19:47:50 -07:00
db Merge "Drop 1.35 db updates" 2024-05-05 06:50:24 +00:00
dumps
exception
filecontentshasher
filerepo
GhostFieldAccess
gitinfo
import
languageConverter Remove language coverter for Kazakh 2023-11-20 10:31:16 -05:00
less tests: Import Codex token files by reference 2024-04-30 14:47:41 -07:00
localisationcache Add TranslationAliasesDirs to specify special page aliases in JSON 2024-03-06 18:13:28 +05:30
MaintenanceRunner Use fake maintenance scripts in MaintenanceRunnerTest where necessary 2024-08-08 13:02:22 +00:00
media Extract XMP & Exif from WebP files 2024-05-11 09:41:21 +00:00
messages
MessageValue Make MessageValue implement JsonDeserializable 2024-06-12 15:47:37 -04:00
MSCompoundFileReader
OutputTransform/i18n Localization output transform 2024-05-06 15:24:38 -04:00
parser
ParserCache [JsonCodec] Establish forward-compatibility with future codec 2024-06-14 15:31:29 -04:00
preprocess
registration
resourceloader tests: Add CodexModule tests for full library mode 2024-05-16 12:00:46 -04:00
resourceloader-b
rlfilepath
templates
upload
zip
.eslintrc.json