aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/exception/UserNotLoggedInTest.php
diff options
context:
space:
mode:
authoraddshore <addshorewiki@gmail.com>2014-02-27 01:00:17 +0100
committeraddshore <addshorewiki@gmail.com>2014-02-27 01:07:03 +0100
commit9e975c4a248bb0d626747dccef064745b6840abd (patch)
tree7b06af2059e9ccf9b1afd606e9300f58f07182f3 /tests/phpunit/includes/exception/UserNotLoggedInTest.php
parent96b04cef361c26bbc6b76be6afbf298e4d22fed3 (diff)
downloadmediawikicore-9e975c4a248bb0d626747dccef064745b6840abd.tar.gz
mediawikicore-9e975c4a248bb0d626747dccef064745b6840abd.zip
Add tests exceptions
- ErrorPageError - ReadOnlyError - UserNotLoggedIn Change-Id: I9d0088d38e26a6b77e371288f1fa72dbe481cf66
Diffstat (limited to 'tests/phpunit/includes/exception/UserNotLoggedInTest.php')
-rw-r--r--tests/phpunit/includes/exception/UserNotLoggedInTest.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/phpunit/includes/exception/UserNotLoggedInTest.php b/tests/phpunit/includes/exception/UserNotLoggedInTest.php
new file mode 100644
index 000000000000..591a0fa1eae0
--- /dev/null
+++ b/tests/phpunit/includes/exception/UserNotLoggedInTest.php
@@ -0,0 +1,16 @@
+<?php
+
+/**
+ * @covers UserNotLoggedIn
+ * @author Adam Shorland
+ */
+class UserNotLoggedInTest extends MediaWikiTestCase {
+
+ public function testConstruction() {
+ $e = new UserNotLoggedIn();
+ $this->assertEquals( 'exception-nologin', $e->title );
+ $this->assertEquals( 'exception-nologin-text', $e->msg );
+ $this->assertEquals( array(), $e->params );
+ }
+
+}