MediaWiki
REL1_31
UserNotLoggedInTest.php
Go to the documentation of this file.
1
<?php
2
7
class
UserNotLoggedInTest
extends
MediaWikiTestCase
{
8
9
public
function
testConstruction
() {
10
$e
=
new
UserNotLoggedIn
();
11
$this->assertEquals(
'exception-nologin'
,
$e
->title );
12
$this->assertEquals(
'exception-nologin-text'
,
$e
->msg );
13
$this->assertEquals( [],
$e
->params );
14
}
15
16
}
MediaWikiTestCase
Definition
MediaWikiTestCase.php:17
UserNotLoggedInTest
UserNotLoggedIn.
Definition
UserNotLoggedInTest.php:7
UserNotLoggedInTest\testConstruction
testConstruction()
Definition
UserNotLoggedInTest.php:9
UserNotLoggedIn
Redirect a user to the login page.
Definition
UserNotLoggedIn.php:53
$e
returning false will NOT prevent logging $e
Definition
hooks.txt:2176
tests
phpunit
includes
exception
UserNotLoggedInTest.php
Generated on Mon Nov 25 2024 15:36:21 for MediaWiki by
1.10.0