Suppress addCoreDBData() in tests overriding the revision schema.
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 12 Jun 2018 16:36:34 +0000 (18:36 +0200)
committerAddshore <addshorewiki@gmail.com>
Thu, 14 Jun 2018 07:41:28 +0000 (07:41 +0000)
commite4b775acf113d021ce35f69a177d7444b8ed8412
treea54d3e73be7ab754943cc54ec71f68881ee0ed52
parent6a6771e553aa06979dce4d5349e4f4dd54f6063a
Suppress addCoreDBData() in tests overriding the revision schema.

Some unit tests for the MCR schema migration change the DB schema
in the test setup. However, addCoreDBData() will not work with the
modified schema. Since these tests don't actually need addCoreDBData()
to do anything, they can simply override it to do nothing.

Without this change, tests for Ic2221da30c and Ifabf39e12ba843
fail with $wgMultiContentRevisionSchemaMigrationStage = MIGRATION_WRITE_BOTH.

Change-Id: I86e140ec981dfa4e904822b1600399c533f9e3d6
tests/phpunit/MediaWikiTestCase.php
tests/phpunit/includes/RevisionDbTestBase.php
tests/phpunit/includes/Storage/RevisionStoreDbTestBase.php
tests/phpunit/includes/api/ApiBaseTest.php
tests/phpunit/includes/page/WikiPageDbTestBase.php