Import: Handle uploads with sha1 starting with 0 properly
[mediawiki.git] / tests / phpunit / includes / exception / ReadOnlyErrorTest.php
blob6f6aba47cfbd20b44a5decea86a34e839fbdcc4f
1 <?php
3 /**
4 * @covers ReadOnlyError
5 * @author Adam Shorland
6 */
7 class ReadOnlyErrorTest extends MediaWikiTestCase {
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 );