aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/changes
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/changes')
-rw-r--r--tests/phpunit/includes/changes/CategoryMembershipChangeTest.php2
-rw-r--r--tests/phpunit/includes/changes/EnhancedChangesListTest.php2
-rw-r--r--tests/phpunit/includes/changes/OldChangesListTest.php2
-rw-r--r--tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php2
-rw-r--r--tests/phpunit/includes/changes/RecentChangeTest.php66
5 files changed, 37 insertions, 37 deletions
diff --git a/tests/phpunit/includes/changes/CategoryMembershipChangeTest.php b/tests/phpunit/includes/changes/CategoryMembershipChangeTest.php
index d0b0e9c8d3f3..3d3562b511f9 100644
--- a/tests/phpunit/includes/changes/CategoryMembershipChangeTest.php
+++ b/tests/phpunit/includes/changes/CategoryMembershipChangeTest.php
@@ -6,7 +6,7 @@ use MediaWiki\User\User;
use MediaWiki\User\UserIdentity;
/**
- * @covers CategoryMembershipChange
+ * @covers \CategoryMembershipChange
*
* @group Database
*
diff --git a/tests/phpunit/includes/changes/EnhancedChangesListTest.php b/tests/phpunit/includes/changes/EnhancedChangesListTest.php
index a7b53f283726..e3811626680d 100644
--- a/tests/phpunit/includes/changes/EnhancedChangesListTest.php
+++ b/tests/phpunit/includes/changes/EnhancedChangesListTest.php
@@ -6,7 +6,7 @@ use MediaWiki\User\User;
use MediaWiki\Utils\MWTimestamp;
/**
- * @covers EnhancedChangesList
+ * @covers \EnhancedChangesList
*
* @group Database
*
diff --git a/tests/phpunit/includes/changes/OldChangesListTest.php b/tests/phpunit/includes/changes/OldChangesListTest.php
index 051b1fd330cc..144998ee33f4 100644
--- a/tests/phpunit/includes/changes/OldChangesListTest.php
+++ b/tests/phpunit/includes/changes/OldChangesListTest.php
@@ -5,7 +5,7 @@ use MediaWiki\MainConfigNames;
use MediaWiki\Title\Title;
/**
- * @covers OldChangesList
+ * @covers \OldChangesList
*
* @todo add tests to cover article link, timestamp, character difference,
* log entry, user tool links, direction marks, tags, rollback,
diff --git a/tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php b/tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php
index 9ed6b2fcb0ad..6d17ee5d093c 100644
--- a/tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php
+++ b/tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php
@@ -5,7 +5,7 @@ use MediaWiki\MainConfigNames;
use MediaWiki\Title\Title;
/**
- * @covers RCCacheEntryFactory
+ * @covers \RCCacheEntryFactory
*
* @group Database
*
diff --git a/tests/phpunit/includes/changes/RecentChangeTest.php b/tests/phpunit/includes/changes/RecentChangeTest.php
index 874f0a0c6fe2..aa5dfd6fd05e 100644
--- a/tests/phpunit/includes/changes/RecentChangeTest.php
+++ b/tests/phpunit/includes/changes/RecentChangeTest.php
@@ -118,10 +118,10 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::save
- * @covers RecentChange::newFromId
- * @covers RecentChange::getTitle
- * @covers RecentChange::getPerformerIdentity
+ * @covers \RecentChange::save
+ * @covers \RecentChange::newFromId
+ * @covers \RecentChange::getTitle
+ * @covers \RecentChange::getPerformerIdentity
* @dataProvider provideAttribs
*/
public function testDatabaseRoundTrip( $attribs ) {
@@ -151,10 +151,10 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::newFromRow
- * @covers RecentChange::loadFromRow
- * @covers RecentChange::getAttributes
- * @covers RecentChange::getPerformerIdentity
+ * @covers \RecentChange::newFromRow
+ * @covers \RecentChange::loadFromRow
+ * @covers \RecentChange::getAttributes
+ * @covers \RecentChange::getPerformerIdentity
*/
public function testNewFromRow() {
$user = $this->getTestUser()->getUser();
@@ -208,10 +208,10 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::notifyNew
- * @covers RecentChange::newFromId
- * @covers RecentChange::getAttributes
- * @covers RecentChange::getPerformerIdentity
+ * @covers \RecentChange::notifyNew
+ * @covers \RecentChange::newFromId
+ * @covers \RecentChange::getAttributes
+ * @covers \RecentChange::getPerformerIdentity
*/
public function testNotifyNew() {
$now = MWTimestamp::now();
@@ -246,10 +246,10 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::notifyNew
- * @covers RecentChange::newFromId
- * @covers RecentChange::getAttributes
- * @covers RecentChange::getPerformerIdentity
+ * @covers \RecentChange::notifyNew
+ * @covers \RecentChange::newFromId
+ * @covers \RecentChange::getAttributes
+ * @covers \RecentChange::getPerformerIdentity
*/
public function testNotifyEdit() {
$now = MWTimestamp::now();
@@ -286,10 +286,10 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::notifyNew
- * @covers RecentChange::newFromId
- * @covers RecentChange::getAttributes
- * @covers RecentChange::getPerformerIdentity
+ * @covers \RecentChange::notifyNew
+ * @covers \RecentChange::newFromId
+ * @covers \RecentChange::getAttributes
+ * @covers \RecentChange::getPerformerIdentity
*/
public function testNewLogEntry() {
$now = MWTimestamp::now();
@@ -353,7 +353,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::parseParams
+ * @covers \RecentChange::parseParams
* @dataProvider provideParseParams
* @param array $expectedParseParams
* @param string|null $rawRcParams
@@ -368,7 +368,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::getNotifyUrl
+ * @covers \RecentChange::getNotifyUrl
*/
public function testGetNotifyUrlForEdit() {
$rc = new RecentChange;
@@ -396,7 +396,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::getNotifyUrl
+ * @covers \RecentChange::getNotifyUrl
*/
public function testGetNotifyUrlForCreate() {
$rc = new RecentChange;
@@ -424,7 +424,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::getNotifyUrl
+ * @covers \RecentChange::getNotifyUrl
*/
public function testGetNotifyUrlForLog() {
$rc = new RecentChange;
@@ -458,7 +458,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::isInRCLifespan
+ * @covers \RecentChange::isInRCLifespan
* @dataProvider provideIsInRCLifespan
*/
public function testIsInRCLifespan( $maxAge, $offset, $tolerance, $expected ) {
@@ -482,7 +482,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideRCTypes
- * @covers RecentChange::parseFromRCType
+ * @covers \RecentChange::parseFromRCType
*/
public function testParseFromRCType( $rcType, $type ) {
$this->assertEquals( $type, RecentChange::parseFromRCType( $rcType ) );
@@ -490,7 +490,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideRCTypes
- * @covers RecentChange::parseToRCType
+ * @covers \RecentChange::parseToRCType
*/
public function testParseToRCType( $rcType, $type ) {
$this->assertEquals( $rcType, RecentChange::parseToRCType( $type ) );
@@ -505,7 +505,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideCategoryContent
- * @covers RecentChange::newForCategorization
+ * @covers \RecentChange::newForCategorization
*/
public function testHiddenCategoryChange( $isHidden ) {
$categoryTitle = Title::makeTitle( NS_CATEGORY, 'CategoryPage' );
@@ -547,7 +547,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::doMarkPatrolled
+ * @covers \RecentChange::doMarkPatrolled
*/
public function testDoMarkPatrolledPermissions() {
$rc = $this->getDummyEditRecentChange();
@@ -570,7 +570,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::doMarkPatrolled
+ * @covers \RecentChange::doMarkPatrolled
*/
public function testDoMarkPatrolledPermissions_Hook() {
$rc = $this->getDummyEditRecentChange();
@@ -582,7 +582,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::doMarkPatrolled
+ * @covers \RecentChange::doMarkPatrolled
*/
public function testDoMarkPatrolledPermissions_Self() {
$rc = $this->getDummyEditRecentChange();
@@ -593,7 +593,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::doMarkPatrolled
+ * @covers \RecentChange::doMarkPatrolled
*/
public function testDoMarkPatrolledPermissions_NoRcPatrol() {
$rc = $this->getDummyEditRecentChange();
@@ -602,7 +602,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::doMarkPatrolled
+ * @covers \RecentChange::doMarkPatrolled
*/
public function testDoMarkPatrolled() {
$this->overrideConfigValue( MainConfigNames::UseRCPatrol, true );