X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fjobqueue%2FJobQueueTest.php;h=0421fe7c68d2085761823ba3caec46fe75b80dda;hb=ebc4d535f196b1d78b6b53cb95cda35d9cb6295e;hp=0625edd8b53abf965530b1a54d02d83ded3e1b6b;hpb=0c2687f44eb0e8c7f480b7303f89056682ba0bfb;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/jobqueue/JobQueueTest.php b/tests/phpunit/includes/jobqueue/JobQueueTest.php index 0625edd8b5..0421fe7c68 100644 --- a/tests/phpunit/includes/jobqueue/JobQueueTest.php +++ b/tests/phpunit/includes/jobqueue/JobQueueTest.php @@ -75,6 +75,7 @@ class JobQueueTest extends MediaWikiTestCase { $this->markTestSkipped( $desc ); } $this->assertEquals( wfWikiID(), $queue->getWiki(), "Proper wiki ID ($desc)" ); + $this->assertEquals( wfWikiID(), $queue->getDomain(), "Proper wiki ID ($desc)" ); } /** @@ -387,7 +388,7 @@ class JobQueueTest extends MediaWikiTestCase { class JobQueueDBSingle extends JobQueueDB { protected function getDB( $index ) { $lb = MediaWikiServices::getInstance()->getDBLoadBalancer(); - // Override to not use CONN_TRX_AUTO so that we see the same temporary `job` table - return $lb->getConnection( $index, [], $this->wiki ); + // Override to not use CONN_TRX_AUTOCOMMIT so that we see the same temporary `job` table + return $lb->getConnection( $index, [], $this->domain ); } }