dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add 3D filetype for STL files"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
WatchedItemQueryServiceUnitTest.php
diff --git
a/tests/phpunit/includes/WatchedItemQueryServiceUnitTest.php
b/tests/phpunit/includes/WatchedItemQueryServiceUnitTest.php
index
bdec0a5
..
872c580
100644
(file)
--- a/
tests/phpunit/includes/WatchedItemQueryServiceUnitTest.php
+++ b/
tests/phpunit/includes/WatchedItemQueryServiceUnitTest.php
@@
-1,5
+1,7
@@
<?php
<?php
+use Wikimedia\TestingAccessWrapper;
+
/**
* @covers WatchedItemQueryService
*/
/**
* @covers WatchedItemQueryService
*/
@@
-66,7
+68,7
@@
class WatchedItemQueryServiceUnitTest extends PHPUnit_Framework_TestCase {
* @return PHPUnit_Framework_MockObject_MockObject|User
*/
private function getMockNonAnonUserWithId( $id ) {
* @return PHPUnit_Framework_MockObject_MockObject|User
*/
private function getMockNonAnonUserWithId( $id ) {
- $mock = $this->getMock
( User::class
);
+ $mock = $this->getMock
Builder( User::class )->getMock(
);
$mock->expects( $this->any() )
->method( 'isAnon' )
->will( $this->returnValue( false ) );
$mock->expects( $this->any() )
->method( 'isAnon' )
->will( $this->returnValue( false ) );
@@
-142,7
+144,7
@@
class WatchedItemQueryServiceUnitTest extends PHPUnit_Framework_TestCase {
}
private function getMockAnonUser() {
}
private function getMockAnonUser() {
- $mock = $this->getMock
( User::class
);
+ $mock = $this->getMock
Builder( User::class )->getMock(
);
$mock->expects( $this->any() )
->method( 'isAnon' )
->will( $this->returnValue( true ) );
$mock->expects( $this->any() )
->method( 'isAnon' )
->will( $this->returnValue( true ) );