MediaWiki REL1_32
|
Public Member Functions | |
provideCheck () | |
testArray ( $data, $expect) | |
MWRestrictions::newFromArray MWRestrictions::__construct MWRestrictions::loadFromArray MWRestrictions::toArray provideArray. | |
testCheck ( $request, $expect) | |
MWRestrictions::check provideCheck. | |
testCheckIP ( $ip, $pass) | |
MWRestrictions::checkIP provideCheckIP. | |
testJson ( $json, $expect) | |
MWRestrictions::newFromJson MWRestrictions::__construct MWRestrictions::loadFromArray MWRestrictions::toJson MWRestrictions::__toString provideJson. | |
testNewDefault () | |
MWRestrictions::newDefault MWRestrictions::__construct. | |
Static Public Member Functions | |
static | provideArray () |
static | provideCheckIP () |
static | provideJson () |
static | setUpBeforeClass () |
Static Protected Attributes | |
static | $restrictionsForChecks |
Definition at line 2 of file MWRestrictionsTest.php.
|
static |
Definition at line 56 of file MWRestrictionsTest.php.
References true.
MWRestrictionsTest::provideCheck | ( | ) |
Definition at line 180 of file MWRestrictionsTest.php.
|
static |
Definition at line 159 of file MWRestrictionsTest.php.
|
static |
Definition at line 112 of file MWRestrictionsTest.php.
|
static |
Definition at line 8 of file MWRestrictionsTest.php.
References MWRestrictions\newFromArray().
MWRestrictionsTest::testArray | ( | $data, | |
$expect | |||
) |
MWRestrictions::newFromArray MWRestrictions::__construct MWRestrictions::loadFromArray MWRestrictions::toArray provideArray.
array | $data | |
bool | InvalidArgumentException | $expect | True if the call succeeds, otherwise the exception that should be thrown. |
Definition at line 41 of file MWRestrictionsTest.php.
References $ret, and MWRestrictions\newFromArray().
MWRestrictionsTest::testCheck | ( | $request, | |
$expect | |||
) |
MWRestrictions::check provideCheck.
WebRequest | $request | |
Status | $expect |
Definition at line 176 of file MWRestrictionsTest.php.
MWRestrictionsTest::testCheckIP | ( | $ip, | |
$pass | |||
) |
MWRestrictions::checkIP provideCheckIP.
string | $ip | |
bool | $pass |
Definition at line 155 of file MWRestrictionsTest.php.
MWRestrictionsTest::testJson | ( | $json, | |
$expect | |||
) |
MWRestrictions::newFromJson MWRestrictions::__construct MWRestrictions::loadFromArray MWRestrictions::toJson MWRestrictions::__toString provideJson.
string | $json | |
array | InvalidArgumentException | $expect |
Definition at line 89 of file MWRestrictionsTest.php.
References $ret, and MWRestrictions\newFromJson().
MWRestrictionsTest::testNewDefault | ( | ) |
MWRestrictions::newDefault MWRestrictions::__construct.
Definition at line 22 of file MWRestrictionsTest.php.
References $ret, and MWRestrictions\newDefault().
|
staticprotected |
Definition at line 6 of file MWRestrictionsTest.php.