Set the DatabaseDomain in some tests classes for sanity
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 21 Sep 2016 10:00:48 +0000 (03:00 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 21 Sep 2016 10:02:31 +0000 (10:02 +0000)
Change-Id: I6531dc6cf89fbe7e5656354bcd4a27369f573752

tests/phpunit/includes/db/DatabaseMysqlBaseTest.php
tests/phpunit/includes/db/DatabaseTestHelper.php
tests/phpunit/includes/installer/DatabaseUpdaterTest.php

index f13ead4..b2cdc86 100644 (file)
@@ -33,6 +33,7 @@ class FakeDatabaseMysqlBase extends DatabaseMysqlBase {
        function __construct() {
                $this->profiler = new ProfilerStub( [] );
                $this->trxProfiler = new TransactionProfiler();
+               $this->currentDomain = DatabaseDomain::newUnspecified();
        }
 
        protected function closeConnection() {
index caa29bd..29b2bed 100644 (file)
@@ -36,6 +36,7 @@ class DatabaseTestHelper extends DatabaseBase {
                $this->cliMode = isset( $opts['cliMode'] ) ? $opts['cliMode'] : true;
                $this->connLogger = new \Psr\Log\NullLogger();
                $this->queryLogger = new \Psr\Log\NullLogger();
+               $this->currentDomain = DatabaseDomain::newUnspecified();
        }
 
        /**
index 81c9faf..4634239 100644 (file)
@@ -21,6 +21,7 @@ class FakeDatabase extends DatabaseBase {
        public $lastInsertData;
 
        function __construct() {
+               $this->currentDomain = DatabaseDomain::newUnspecified();
        }
 
        function clearFlag( $arg, $remember = self::REMEMBER_NOTHING ) {