*/
class DBConnRefTest extends PHPUnit\Framework\TestCase {
+ use MediaWikiCoversValidator;
use PHPUnit4And6Compat;
/**
new DBConnRef( $lb, 17 ); // bad constructor argument
}
- public function testGetWikiID() {
- $lb = $this->getMock( ILoadBalancer::class );
-
- // getWikiID is optimized to not create a connection
- $lb->expects( $this->never() )
- ->method( 'getConnection' );
-
- $ref = new DBConnRef( $lb, [ DB_REPLICA, [], 'dummy', 0 ] );
-
- $this->assertSame( 'dummy', $ref->getWikiID() );
- }
-
+ /**
+ * @covers Wikimedia\Rdbms\DBConnRef::getDomainId
+ */
public function testGetDomainID() {
$lb = $this->getMock( ILoadBalancer::class );