diff options
author | Reedy <reedy@wikimedia.org> | 2024-02-16 18:04:47 +0000 |
---|---|---|
committer | Jforrester <jforrester@wikimedia.org> | 2024-02-16 22:43:56 +0000 |
commit | 85396a9c99230d706cbbe21466770856b1fbe922 (patch) | |
tree | 3c71838f4b417f7eca33855dfa99ca4a0ebafa4d /tests/phpunit/includes/content/ContentModelChangeTest.php | |
parent | 0c60b7f43520dced14c49a72ff28fd0ac5f0399a (diff) | |
download | mediawikicore-85396a9c99230d706cbbe21466770856b1fbe922.tar.gz mediawikicore-85396a9c99230d706cbbe21466770856b1fbe922.zip |
tests: Fix @covers and @coversDefaultClass to have leading \
Change-Id: I5629f91387f2ac453ee4341bfe4bba310bd52f03
Diffstat (limited to 'tests/phpunit/includes/content/ContentModelChangeTest.php')
-rw-r--r-- | tests/phpunit/includes/content/ContentModelChangeTest.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/phpunit/includes/content/ContentModelChangeTest.php b/tests/phpunit/includes/content/ContentModelChangeTest.php index 6263cee2cf08..c2556269b10a 100644 --- a/tests/phpunit/includes/content/ContentModelChangeTest.php +++ b/tests/phpunit/includes/content/ContentModelChangeTest.php @@ -44,7 +44,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase { /** * Test that the content model needs to change * - * @covers ContentModelChange::doContentModelChange + * @covers \ContentModelChange::doContentModelChange */ public function testChangeNeeded() { $wikipage = $this->getExistingTestPage( 'ExistingPage' ); @@ -73,7 +73,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase { /** * Test that the content needs to be valid for the requested model * - * @covers ContentModelChange::doContentModelChange + * @covers \ContentModelChange::doContentModelChange */ public function testInvalidContent() { $invalidJSON = 'Foo\nBar\nEaster egg\nT22281'; @@ -106,7 +106,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase { /** * Test the EditFilterMergedContent hook can be intercepted * - * @covers ContentModelChange::doContentModelChange + * @covers \ContentModelChange::doContentModelChange * * @dataProvider provideTestEditFilterMergedContent * @param string|bool $customMessage Hook message, or false @@ -155,7 +155,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase { /** * Test the ContentModelCanBeUsedOn hook can be intercepted * - * @covers ContentModelChange::doContentModelChange + * @covers \ContentModelChange::doContentModelChange */ public function testContentModelCanBeUsedOn() { $wikipage = $this->getExistingTestPage( 'ExistingPage' ); @@ -201,7 +201,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase { /** * Test that content handler must support direct editing * - * @covers ContentModelChange::doContentModelChange + * @covers \ContentModelChange::doContentModelChange */ public function testNoDirectEditing() { $title = Title::newFromText( 'Dummy:NoDirectEditing' ); @@ -240,7 +240,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase { } /** - * @covers ContentModelChange::setTags + * @covers \ContentModelChange::setTags */ public function testCannotApplyTags() { ChangeTags::defineTag( 'edit content model tag' ); @@ -258,8 +258,8 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase { } /** - * @covers ContentModelChange::authorizeChange - * @covers ContentModelChange::probablyCanChange + * @covers \ContentModelChange::authorizeChange + * @covers \ContentModelChange::probablyCanChange */ public function testCheckPermissions() { $wikipage = $this->getExistingTestPage( 'ExistingPage' ); @@ -322,7 +322,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase { } /** - * @covers ContentModelChange::doContentModelChange + * @covers \ContentModelChange::doContentModelChange */ public function testCheckPermissionsThrottle() { $user = $this->getTestUser()->getUser(); |