diff options
author | addshore <addshorewiki@gmail.com> | 2014-02-27 01:00:17 +0100 |
---|---|---|
committer | addshore <addshorewiki@gmail.com> | 2014-02-27 01:07:03 +0100 |
commit | 9e975c4a248bb0d626747dccef064745b6840abd (patch) | |
tree | 7b06af2059e9ccf9b1afd606e9300f58f07182f3 /tests/phpunit/includes/exception/UserNotLoggedInTest.php | |
parent | 96b04cef361c26bbc6b76be6afbf298e4d22fed3 (diff) | |
download | mediawikicore-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.php | 16 |
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 ); + } + +} |