}
/**
- * @param $mockDb
+ * @param PHPUnit_Framework_MockObject_MockObject|Database $mockDb
* @return PHPUnit_Framework_MockObject_MockObject|LoadBalancer
*/
private function getMockLoadBalancer( $mockDb ) {
->getMock();
$mock->expects( $this->any() )
->method( 'getConnectionRef' )
- ->with( DB_SLAVE )
+ ->with( DB_REPLICA )
->will( $this->returnValue( $mockDb ) );
return $mock;
}