Introduce per-schema unit tests for revision storage.
authordaniel <daniel.kinzler@wikimedia.de>
Mon, 14 May 2018 11:57:43 +0000 (13:57 +0200)
committerAddshore <addshorewiki@gmail.com>
Thu, 7 Jun 2018 13:31:16 +0000 (13:31 +0000)
commit32e9266d8dccbb5e6f4ff8f208658eae1e1b4d7a
tree9071c05fd500e437ee078ce2d65d29ed3afe6e90
parent96a964631bd7e1229567eed3467890ce23fe8819
Introduce per-schema unit tests for revision storage.

This introduces traits for testing different schema variations.
These are not very useful in this patch, but make it much easier
to add tests for MCR schema migration in subsequent patches.

The code in this patch was previously part of If259b1e1c49ceaa4.

Change-Id: I239572f75bebbc9c731a3e3860c4eff179dc15e4
22 files changed:
autoload.php
includes/db/PatchFileLocation.php [new file with mode: 0644]
tests/common/TestsAutoLoader.php
tests/phpunit/includes/RevisionContentHandlerDbTest.php [deleted file]
tests/phpunit/includes/RevisionDbTestBase.php
tests/phpunit/includes/RevisionNoContentHandlerDbTest.php [deleted file]
tests/phpunit/includes/RevisionNoContentModelDbTest.php [new file with mode: 0644]
tests/phpunit/includes/RevisionPreMcrDbTest.php [new file with mode: 0644]
tests/phpunit/includes/Storage/McrSchemaDetection.php [new file with mode: 0644]
tests/phpunit/includes/Storage/NoContentModelRevisionStoreDbTest.php [new file with mode: 0644]
tests/phpunit/includes/Storage/PreMcrRevisionStoreDbTest.php [new file with mode: 0644]
tests/phpunit/includes/Storage/PreMcrSchemaOverride.php [new file with mode: 0644]
tests/phpunit/includes/Storage/RevisionStoreDbTest.php [deleted file]
tests/phpunit/includes/Storage/RevisionStoreDbTestBase.php [new file with mode: 0644]
tests/phpunit/includes/Storage/RevisionStoreTest.php
tests/phpunit/includes/Storage/create-pre-mcr-fields.sql [new file with mode: 0644]
tests/phpunit/includes/Storage/drop-mcr-tables.sql [new file with mode: 0644]
tests/phpunit/includes/page/WikiPageContentHandlerDbTest.php [deleted file]
tests/phpunit/includes/page/WikiPageDbTestBase.php
tests/phpunit/includes/page/WikiPageNoContentHandlerDbTest.php [deleted file]
tests/phpunit/includes/page/WikiPageNoContentModelDbTest.php [new file with mode: 0644]
tests/phpunit/includes/page/WikiPagePreMcrDbTest.php [new file with mode: 0644]