MediaWiki REL1_30
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() ?: [], $e->params );
14 }
15
16}
wfReadOnlyReason()
Check if the site is in read-only mode and return the message if so.
Show an error when the wiki is locked/read-only and the user tries to do something that requires writ...
returning false will NOT prevent logging $e
Definition hooks.txt:2146