Merge "Set more fields in fake DB subclasses to avoid errors"
[lhc/web/wiklou.git] / tests / phpunit / includes / db / DatabaseTestHelper.php
index 4c3ba10..31b692b 100644 (file)
@@ -98,6 +98,11 @@ class DatabaseTestHelper extends DatabaseBase {
        }
 
        public function tableExists( $table, $fname = __METHOD__ ) {
+               $tableRaw = $this->tableName( $table, 'raw' );
+               if ( isset( $this->mSessionTempTables[$tableRaw] ) ) {
+                       return true; // already known to exist
+               }
+
                $this->checkFunctionName( $fname );
 
                return in_array( $table, (array)$this->tablesExists );