From: Aaron Schulz Date: Wed, 21 Sep 2016 10:00:48 +0000 (-0700) Subject: Set the DatabaseDomain in some tests classes for sanity X-Git-Tag: 1.31.0-rc.0~5414^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=69aa57ed91463293bbe37149a846b433010bb9d4;p=lhc%2Fweb%2Fwiklou.git Set the DatabaseDomain in some tests classes for sanity Change-Id: I6531dc6cf89fbe7e5656354bcd4a27369f573752 --- diff --git a/tests/phpunit/includes/db/DatabaseMysqlBaseTest.php b/tests/phpunit/includes/db/DatabaseMysqlBaseTest.php index f13ead4606..b2cdc8641e 100644 --- a/tests/phpunit/includes/db/DatabaseMysqlBaseTest.php +++ b/tests/phpunit/includes/db/DatabaseMysqlBaseTest.php @@ -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() { diff --git a/tests/phpunit/includes/db/DatabaseTestHelper.php b/tests/phpunit/includes/db/DatabaseTestHelper.php index caa29bd448..29b2bedbf9 100644 --- a/tests/phpunit/includes/db/DatabaseTestHelper.php +++ b/tests/phpunit/includes/db/DatabaseTestHelper.php @@ -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(); } /** diff --git a/tests/phpunit/includes/installer/DatabaseUpdaterTest.php b/tests/phpunit/includes/installer/DatabaseUpdaterTest.php index 81c9fafac3..463423907c 100644 --- a/tests/phpunit/includes/installer/DatabaseUpdaterTest.php +++ b/tests/phpunit/includes/installer/DatabaseUpdaterTest.php @@ -21,6 +21,7 @@ class FakeDatabase extends DatabaseBase { public $lastInsertData; function __construct() { + $this->currentDomain = DatabaseDomain::newUnspecified(); } function clearFlag( $arg, $remember = self::REMEMBER_NOTHING ) {