mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
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:
parent
7027949ad1
commit
ab9c69dc28
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue