X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FMWNamespaceTest.php;h=f705537d7580dea5382a139fccf35ae9916a952d;hb=45da5815517c408bafed6b3744766860afdcd7b8;hp=498532f76cab0bab2fabb7b61a7725ef6a0e7056;hpb=7ece93cc8194ad00285094d0056ced99d0378adb;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/MWNamespaceTest.php b/tests/phpunit/includes/MWNamespaceTest.php index 498532f76c..f705537d75 100644 --- a/tests/phpunit/includes/MWNamespaceTest.php +++ b/tests/phpunit/includes/MWNamespaceTest.php @@ -5,12 +5,8 @@ * @file */ -/** - * Test class for MWNamespace. - * @todo covers tags - * @todo FIXME: this test file is a mess - */ class MWNamespaceTest extends MediaWikiTestCase { + protected function setUp() { parent::setUp(); @@ -27,15 +23,12 @@ class MWNamespaceTest extends MediaWikiTestCase { ] ); } -# ### START OF TESTS ######################################################### - /** * @todo Write more texts, handle $wgAllowImageMoving setting * @covers MWNamespace::isMovable */ public function testIsMovable() { $this->assertFalse( MWNamespace::isMovable( NS_SPECIAL ) ); - # @todo FIXME: Write more tests!! } /** @@ -154,18 +147,6 @@ class MWNamespaceTest extends MediaWikiTestCase { $this->assertNull( MWNamespace::getAssociated( NS_SPECIAL ) ); } - /** - * @todo Implement testExists(). - */ - /* - public function testExists() { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet. Rely on $wgCanonicalNamespaces.' - ); - } - */ - /** * Test MWNamespace::equals * Note if we add a namespace registration system with keys like 'MAIN' @@ -216,52 +197,6 @@ class MWNamespaceTest extends MediaWikiTestCase { ); } - /** - * @todo Implement testGetCanonicalNamespaces(). - */ - /* - public function testGetCanonicalNamespaces() { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet. Rely on $wgCanonicalNamespaces.' - ); - } - */ - /** - * @todo Implement testGetCanonicalName(). - */ - /* - public function testGetCanonicalName() { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet. Rely on $wgCanonicalNamespaces.' - ); - } - */ - /** - * @todo Implement testGetCanonicalIndex(). - */ - /* - public function testGetCanonicalIndex() { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet. Rely on $wgCanonicalNamespaces.' - ); - } - */ - - /** - * @todo Implement testGetValidNamespaces(). - */ - /* - public function testGetValidNamespaces() { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet. Rely on $wgCanonicalNamespaces.' - ); - } - */ - public function provideHasTalkNamespace() { return [ [ NS_MEDIA, false ],