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

/**
 * @covers ReadOnlyError
 * @author Addshore
 */
class ReadOnlyErrorTest extends MediaWikiIntegrationTestCase {

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

}