wiki.techinc.nl/tests/phpunit/data/import
Dreamy Jazz 649b0f4954 Use import actor store where needed in RC categorisation
Why:
- When temporary users are enabled, creating IP actors is disallowed
  apart from specific cases, such as importing revisions authored by
  anonymous users.
- If such a revision includes a category link and
  wgRCWatchCategoryMembership is true, MediaWiki will fire a job to
  create a corresponding RC entry, which will attempt to attribute the RC
  to the anonymous IP that authored the imported revision and fail in
  doing so.

What:
- Track whether a category membership change job was triggered by an
  import, and allow RecentChange objects created by such jobs to create
  anonymous actors.

Test Plan:
 1. On a wiki with temporary accounts enabled and wgRCWatchCategoryMembership = true,
    import a revision via Special:Import that was authored by an anonymous user
    and contains a category link.
 2. Verify that the import succeeds and that the corresponding RC entry
    shows up.

Bug: T373318
Change-Id: I89abdca9c4ab8796a211df8b37c1bd7173a496e5
2024-10-02 00:45:22 +02:00
..
BadXML.xml
Basic.expected.0.10.xml
Basic.expected.0.11.xml
Basic.import-1.xml
Dupes.expected.0.10.xml
Dupes.expected.0.11.xml
Dupes.import-1.xml
Dupes.import-2.xml
ImportAnonUserTest.xml
ImportLinkCacheIntegrationTest.xml
Interleaved.expected.0.10.xml
Interleaved.expected.0.11.xml
Interleaved.import-1.xml
Interleaved.import-2.xml
Interleaved.import-3.xml
Interleaved.import-4.xml
Interleaved.import-5.xml
Interleaved.import-6.xml
Interleaved.import-7.xml
InterleavedMulti.expected.0.10.xml
InterleavedMulti.expected.0.11.xml
InterleavedMulti.import-1.xml
InterleavedMulti.import-2.xml
MissingMainContentModel.expected.0.10.xml
MissingMainContentModel.expected.0.11.xml
MissingMainContentModel.import-1.xml
MissingMainTextField.xml
MissingMediaWikiTag.xml
MissingSlotContentModel.expected.0.10.xml
MissingSlotContentModel.expected.0.11.xml
MissingSlotContentModel.import-1.xml
MissingSlotRole.xml
MissingSlotTextField.xml
README.md
SiteInfo.0.10.xml
SiteInfo.0.11.xml
Slots.expected.0.10.xml
Slots.expected.0.11.xml
Slots.import-1.xml
UndefinedContentModel.xml
UndefinedSlotRole.xml

This directory contains data files for testing XML dumps. Each file contains an XML structure, full or partial. These data files are intended to be used with DumpAsserter::assertDOM().

The data files contain XML with variable placeholders using a mustache-like syntax, e.g. {{site_name}}. The variable placeholder syntax is implemented by DumpAsserter::resolveVars(), variable values can be defined using DumpAsserter::setVarMapping(). Any differences in whitespace and any comments in the XML files are ignored.

Data files may make use of the test:data and test:end/ tags: test:data acts as a wrapper for a sequence of elements and is ignored during comparison. test:end/ terminates the comparison, and causes all subsequent content of the file to be ignored. The behavior of the test:data and test:end/ tags is controlled by DumpAsserter::assertDOM().

The names of these files, the data they contain, as well as the names of the variables used, are defined by test cases, such as ImportExportTest.