X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FParserTestRunner.php;h=6cf1fcac04f56ca1d275826c1b9bc1680af5f2a1;hb=a79d012e1c40dbeeb55a90b8099fea4aa9b1270b;hp=e07d4a0cf321bf94db9bd03a64c3356e04074b29;hpb=69240c4b143ef9e01a7f3479349c56e568504ba3;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/ParserTestRunner.php b/tests/parser/ParserTestRunner.php index e07d4a0cf3..6cf1fcac04 100644 --- a/tests/parser/ParserTestRunner.php +++ b/tests/parser/ParserTestRunner.php @@ -1151,6 +1151,8 @@ class ParserTestRunner { * @return array */ private function listTables() { + global $wgCommentTableSchemaMigrationStage; + $tables = [ 'user', 'user_properties', 'user_former_groups', 'page', 'page_restrictions', 'protected_titles', 'revision', 'ip_changes', 'text', 'pagelinks', 'imagelinks', 'categorylinks', 'templatelinks', 'externallinks', 'langlinks', 'iwlinks', @@ -1160,6 +1162,13 @@ class ParserTestRunner { 'archive', 'user_groups', 'page_props', 'category' ]; + if ( $wgCommentTableSchemaMigrationStage >= MIGRATION_WRITE_BOTH ) { + // The new tables for comments are in use + $tables[] = 'comment'; + $tables[] = 'revision_comment_temp'; + $tables[] = 'image_comment_temp'; + } + if ( in_array( $this->db->getType(), [ 'mysql', 'sqlite', 'oracle' ] ) ) { array_push( $tables, 'searchindex' ); }