summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/exception/ReadOnlyErrorTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/exception/ReadOnlyErrorTest.php')
-rw-r--r--tests/phpunit/includes/exception/ReadOnlyErrorTest.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/phpunit/includes/exception/ReadOnlyErrorTest.php b/tests/phpunit/includes/exception/ReadOnlyErrorTest.php
new file mode 100644
index 00000000..6f6aba47
--- /dev/null
+++ b/tests/phpunit/includes/exception/ReadOnlyErrorTest.php
@@ -0,0 +1,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 );
+ }
+
+}