wiki.techinc.nl/tests/phpunit/includes/exception/UserNotLoggedInTest.php
addshore 9e975c4a24 Add tests exceptions
- ErrorPageError
- ReadOnlyError
- UserNotLoggedIn

Change-Id: I9d0088d38e26a6b77e371288f1fa72dbe481cf66
2014-02-27 01:07:03 +01:00

16 lines
359 B
PHP

<?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 );
}
}