Fix ParserTestRunner DB table test prefix logic
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 7 Jul 2018 08:52:43 +0000 (09:52 +0100)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 7 Jul 2018 08:52:43 +0000 (09:52 +0100)
Follow-up to 6cfdbdf60

Bug: T198943
Change-Id: I3c3553f2ec6b5ca0d401712e4018c7eec4d9204d

tests/parser/ParserTestRunner.php

index 4ae5f78..ceee432 100644 (file)
@@ -1264,6 +1264,7 @@ class ParserTestRunner {
                $this->dbClone = new CloneDatabase( $this->db, $this->listTables(), $prefix );
                $this->dbClone->useTemporaryTables( $temporary );
                $this->dbClone->cloneTableStructure();
+               CloneDatabase::changePrefix( $prefix );
 
                if ( $dbType == 'oracle' ) {
                        $this->db->query( 'BEGIN FILL_WIKI_INFO; END;' );