From: Adam Wight Date: Thu, 5 Sep 2019 14:07:06 +0000 (+0200) Subject: Rollback change_tag table for tests X-Git-Tag: 1.34.0-rc.0~383 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/File:Contains_&_ampersand.jpg?a=commitdiff_plain;h=4d02bdf897a9aa305750de4e8105b4b7d2beed65;p=lhc%2Fweb%2Fwiklou.git Rollback change_tag table for tests When a change tag row is written during a test, it links to content IDs which may be reused in future tests. To maintain test isolation, we should include this table in the rollback for any tests that touch pages. Bug: T227849 Change-Id: I98fe17e209f6c685ad87e52886a3526f35645d1e --- diff --git a/tests/phpunit/MediaWikiIntegrationTestCase.php b/tests/phpunit/MediaWikiIntegrationTestCase.php index 41c65b28ed..b738312725 100644 --- a/tests/phpunit/MediaWikiIntegrationTestCase.php +++ b/tests/phpunit/MediaWikiIntegrationTestCase.php @@ -1830,6 +1830,7 @@ abstract class MediaWikiIntegrationTestCase extends PHPUnit\Framework\TestCase { $pageTables = [ 'page', 'revision', 'ip_changes', 'revision_comment_temp', 'comment', 'archive', 'revision_actor_temp', 'slots', 'content', 'content_models', 'slot_roles', + 'change_tag', ]; $coreDBDataTables = array_merge( $userTables, $pageTables );