Fix failing tests

Guys, your tests are failing. :-( I can't submit my other patch
because of this.

Change-Id: Ibba5b07205fd45edb73f562c9ca9429487dacafa
This commit is contained in:
Thiemo Mättig 2014-05-27 19:39:52 +02:00
parent 7027949ad1
commit ab9c69dc28

View file

@ -232,7 +232,12 @@ class BatchRowUpdateTest extends MediaWikiTestCase {
protected function mockDb() {
// Cant mock from DatabaseType or DatabaseBase, they dont
// have the full gamut of methods
return $this->getMockBuilder( 'DatabaseMysql' )->disableOriginalConstructor()->getMock();
$databaseMysql = $this->getMockBuilder( 'DatabaseMysql' )
->disableOriginalConstructor()
->getMock();
$databaseMysql->expects( $this->any() )
->method( 'isOpen' )
->will( $this->returnValue( true ) );
return $databaseMysql;
}
}