X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fspecials%2FSpecialPreferencesTest.php;h=4f6c4116aa3fbbaa716cd0b8ea694a975edf6cbe;hb=2b021dc48a423dd43f7c60046315cfe2113a3fb6;hp=8a92dafe9350d0ed8a1523aee7064c314c6f0601;hpb=966fb8da62a9439476ada380dfc3c1a2672446ec;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/specials/SpecialPreferencesTest.php b/tests/phpunit/includes/specials/SpecialPreferencesTest.php index 8a92dafe93..4f6c4116aa 100644 --- a/tests/phpunit/includes/specials/SpecialPreferencesTest.php +++ b/tests/phpunit/includes/specials/SpecialPreferencesTest.php @@ -17,6 +17,7 @@ class SpecialPreferencesTest extends MediaWikiTestCase { * is not throwing a fatal error. * * Test specifications by Alexandre "ialex" Emsenhuber. + * @todo give this test a real name explaining what is being tested here */ public function testBug41337() { @@ -41,13 +42,6 @@ class SpecialPreferencesTest extends MediaWikiTestCase { ) ) ); - # Validate the mock (FIXME should probably be removed) - $this->assertFalse( $user->isAnon() ); - $this->assertEquals( array(), - $user->getEffectiveGroups() ); - $this->assertEquals( 'superlongnickname', - $user->getOption( 'nickname' ) ); - # Forge a request to call the special page $context = new RequestContext(); $context->setRequest( new FauxRequest() ); @@ -57,7 +51,7 @@ class SpecialPreferencesTest extends MediaWikiTestCase { # Do the call, should not spurt a fatal error. $special = new SpecialPreferences(); $special->setContext( $context ); - $special->execute( array() ); + $this->assertNull( $special->execute( array() ) ); } }