wiki.techinc.nl/tests/phpunit/data/import
Cindy Cicalese c69489f44c Check for unknown slot.
Bug: T220525
Change-Id: I89ac1679ea70cb403433f8b97fe11e8eb6811280
2020-07-20 10:39:28 -04: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
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.