Rollback change_tag table for tests
authorAdam Wight <adam.wight@wikimedia.de>
Thu, 5 Sep 2019 14:07:06 +0000 (16:07 +0200)
committerAdam Wight <adam.wight@wikimedia.de>
Thu, 5 Sep 2019 14:07:06 +0000 (16:07 +0200)
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

tests/phpunit/MediaWikiIntegrationTestCase.php

index 41c65b2..b738312 100644 (file)
@@ -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 );