X-Git-Url: https://git.heureux-cyclage.org/w/index.php?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FWatchedItemQueryServiceUnitTest.php;h=92446ed950a91e5b69edf53bedcf3cfdd3615cad;hb=53779578b44575ef91feb3fad488f09b52f737d7;hp=1d232fee8ed1d56f2ae920b3afc816c7aab723db;hpb=fe79bc528b0e054aa630bd4fcfcdd4a9804892da;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/WatchedItemQueryServiceUnitTest.php b/tests/phpunit/includes/WatchedItemQueryServiceUnitTest.php index 1d232fee8e..92446ed950 100644 --- a/tests/phpunit/includes/WatchedItemQueryServiceUnitTest.php +++ b/tests/phpunit/includes/WatchedItemQueryServiceUnitTest.php @@ -6,10 +6,10 @@ class WatchedItemQueryServiceUnitTest extends PHPUnit_Framework_TestCase { /** - * @return PHPUnit_Framework_MockObject_MockObject|DatabaseBase + * @return PHPUnit_Framework_MockObject_MockObject|Database */ private function getMockDb() { - $mock = $this->getMockBuilder( DatabaseBase::class ) + $mock = $this->getMockBuilder( Database::class ) ->disableOriginalConstructor() ->getMock(); @@ -55,7 +55,7 @@ class WatchedItemQueryServiceUnitTest extends PHPUnit_Framework_TestCase { ->disableOriginalConstructor() ->getMock(); $mock->expects( $this->any() ) - ->method( 'getConnection' ) + ->method( 'getConnectionRef' ) ->with( DB_SLAVE ) ->will( $this->returnValue( $mockDb ) ); return $mock;