aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/changes/RecentChangeTest.php
diff options
context:
space:
mode:
authorReedy <reedy@wikimedia.org>2024-02-16 18:04:47 +0000
committerJforrester <jforrester@wikimedia.org>2024-02-16 22:43:56 +0000
commit85396a9c99230d706cbbe21466770856b1fbe922 (patch)
tree3c71838f4b417f7eca33855dfa99ca4a0ebafa4d /tests/phpunit/includes/changes/RecentChangeTest.php
parent0c60b7f43520dced14c49a72ff28fd0ac5f0399a (diff)
downloadmediawikicore-85396a9c99230d706cbbe21466770856b1fbe922.tar.gz
mediawikicore-85396a9c99230d706cbbe21466770856b1fbe922.zip
tests: Fix @covers and @coversDefaultClass to have leading \
Change-Id: I5629f91387f2ac453ee4341bfe4bba310bd52f03
Diffstat (limited to 'tests/phpunit/includes/changes/RecentChangeTest.php')
-rw-r--r--tests/phpunit/includes/changes/RecentChangeTest.php66
1 files changed, 33 insertions, 33 deletions
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 );