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
Use ::class to resolve class names in tests
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
AutopromoteTest.php
diff --git
a/tests/phpunit/includes/AutopromoteTest.php
b/tests/phpunit/includes/AutopromoteTest.php
index
785aa4e
..
8c4a488
100644
(file)
--- a/
tests/phpunit/includes/AutopromoteTest.php
+++ b/
tests/phpunit/includes/AutopromoteTest.php
@@
-1,5
+1,8
@@
<?php
<?php
+/**
+ * @covers Autopromote
+ */
class AutopromoteTest extends MediaWikiTestCase {
/**
* T157718: Verify Autopromote does not perform edit count lookup if requirement is 0 or invalid
class AutopromoteTest extends MediaWikiTestCase {
/**
* T157718: Verify Autopromote does not perform edit count lookup if requirement is 0 or invalid
@@
-17,7
+20,7
@@
class AutopromoteTest extends MediaWikiTestCase {
] );
/** @var PHPUnit_Framework_MockObject_MockObject|User $userMock */
] );
/** @var PHPUnit_Framework_MockObject_MockObject|User $userMock */
- $userMock = $this->getMock(
'User'
, [ 'getEditCount' ] );
+ $userMock = $this->getMock(
User::class
, [ 'getEditCount' ] );
if ( $requirement > 0 ) {
$userMock->expects( $this->once() )
->method( 'getEditCount' )
if ( $requirement > 0 ) {
$userMock->expects( $this->once() )
->method( 'getEditCount' )