* 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() {
)
) );
- # 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() );
# Do the call, should not spurt a fatal error.
$special = new SpecialPreferences();
$special->setContext( $context );
- $special->execute( array() );
+ $this->assertNull( $special->execute( array() ) );
}
}