summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/exception/ReadOnlyErrorTest.php
blob: 6f6aba47cfbd20b44a5decea86a34e839fbdcc4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

/**
 * @covers ReadOnlyError
 * @author Adam Shorland
 */
class ReadOnlyErrorTest extends MediaWikiTestCase {

	public function testConstruction() {
		$e = new ReadOnlyError();
		$this->assertEquals( 'readonly', $e->title );
		$this->assertEquals( 'readonlytext', $e->msg );
		$this->assertEquals( wfReadOnlyReason() ?: array(), $e->params );
	}

}