MediaWiki  1.23.12
ReadOnlyErrorTest.php
Go to the documentation of this file.
1 <?php
2 
8 
9  public function testConstruction() {
10  $e = new ReadOnlyError();
11  $this->assertEquals( 'readonly', $e->title );
12  $this->assertEquals( 'readonlytext', $e->msg );
13  $this->assertEquals( wfReadOnlyReason() ?: array(), $e->params );
14  }
15 
16 }
ReadOnlyError
Show an error when the wiki is locked/read-only and the user tries to do something that requires writ...
Definition: ReadOnlyError.php:28
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
ReadOnlyErrorTest\testConstruction
testConstruction()
Definition: ReadOnlyErrorTest.php:9
MediaWikiTestCase
Definition: MediaWikiTestCase.php:6
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
ReadOnlyErrorTest
@covers ReadOnlyError
Definition: ReadOnlyErrorTest.php:7
wfReadOnlyReason
wfReadOnlyReason()
Get the value of $wgReadOnly or the contents of $wgReadOnlyFile.
Definition: GlobalFunctions.php:1369
$e
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging $e
Definition: hooks.txt:1632