MediaWiki REL1_34
|
@covers SimpleCaptcha More...
Public Member Functions | |
provideAttributeOverwritten () | |
provideAttributeSet () | |
provideCanSkipCaptchaIPWhitelisted () | |
provideCanSkipCaptchaMailconfirmed () | |
provideCanSkipCaptchaUserright () | |
provideNamespaceOverwrites () | |
provideSimpleTriggersCaptcha () | |
tearDown () | |
testCanSkipCaptchaIPWhitelisted ( $requestIP, $IPWhitelist, $expected) | |
testCanSkipCaptchaMailconfirmed ( $allowUserConfirmEmail, $userIsMailConfirmed, $expected) | |
testCanSkipCaptchaUserright ( $userIsAllowed, $expected) | |
@dataProvider provideCanSkipCaptchaUserright | |
testCaptchaTriggersAttributeGetsOverwritten ( $trigger, $expected) | |
@dataProvider provideAttributeOverwritten | |
testCaptchaTriggersAttributeSetTrue ( $trigger, $value) | |
@dataProvider provideAttributeSet | |
testNamespaceTriggersOverwrite ( $trigger, $expected) | |
@dataProvider provideNamespaceOverwrites | |
testTriggersCaptcha ( $action, $expectedResult) | |
@dataProvider provideSimpleTriggersCaptcha | |
Private Member Functions | |
setCaptchaTriggersAttribute ( $trigger, $value) | |
Private Attributes | |
ScopedCallback[] | $hold = [] |
@covers SimpleCaptcha
Definition at line 9 of file CaptchaTest.php.
CaptchaTest::provideAttributeOverwritten | ( | ) |
Definition at line 130 of file CaptchaTest.php.
References true.
CaptchaTest::provideAttributeSet | ( | ) |
Definition at line 109 of file CaptchaTest.php.
References true.
CaptchaTest::provideCanSkipCaptchaIPWhitelisted | ( | ) |
Definition at line 209 of file CaptchaTest.php.
CaptchaTest::provideCanSkipCaptchaMailconfirmed | ( | ) |
Definition at line 177 of file CaptchaTest.php.
References true.
CaptchaTest::provideCanSkipCaptchaUserright | ( | ) |
Definition at line 150 of file CaptchaTest.php.
References true.
CaptchaTest::provideNamespaceOverwrites | ( | ) |
Definition at line 63 of file CaptchaTest.php.
References true.
CaptchaTest::provideSimpleTriggersCaptcha | ( | ) |
Definition at line 33 of file CaptchaTest.php.
References true.
|
private |
Definition at line 70 of file CaptchaTest.php.
References $GLOBALS, and $keys.
Referenced by testCaptchaTriggersAttributeGetsOverwritten(), and testCaptchaTriggersAttributeSetTrue().
CaptchaTest::tearDown | ( | ) |
Definition at line 14 of file CaptchaTest.php.
CaptchaTest::testCanSkipCaptchaIPWhitelisted | ( | $requestIP, | |
$IPWhitelist, | |||
$expected ) |
$requestIP | |
$IPWhitelist | |
$expected |
ConfigException | @dataProvider provideCanSkipCaptchaIPWhitelisted |
Definition at line 193 of file CaptchaTest.php.
References getUser().
CaptchaTest::testCanSkipCaptchaMailconfirmed | ( | $allowUserConfirmEmail, | |
$userIsMailConfirmed, | |||
$expected ) |
$allowUserConfirmEmail | |
$userIsMailConfirmed | |
$expected |
ConfigException | @dataProvider provideCanSkipCaptchaMailconfirmed |
Definition at line 164 of file CaptchaTest.php.
CaptchaTest::testCanSkipCaptchaUserright | ( | $userIsAllowed, | |
$expected ) |
@dataProvider provideCanSkipCaptchaUserright
Definition at line 140 of file CaptchaTest.php.
CaptchaTest::testCaptchaTriggersAttributeGetsOverwritten | ( | $trigger, | |
$expected ) |
@dataProvider provideAttributeOverwritten
Definition at line 119 of file CaptchaTest.php.
References setCaptchaTriggersAttribute().
CaptchaTest::testCaptchaTriggersAttributeSetTrue | ( | $trigger, | |
$value ) |
@dataProvider provideAttributeSet
Definition at line 103 of file CaptchaTest.php.
References setCaptchaTriggersAttribute().
CaptchaTest::testNamespaceTriggersOverwrite | ( | $trigger, | |
$expected ) |
@dataProvider provideNamespaceOverwrites
Definition at line 47 of file CaptchaTest.php.
References $title.
CaptchaTest::testTriggersCaptcha | ( | $action, | |
$expectedResult ) |
@dataProvider provideSimpleTriggersCaptcha
Definition at line 23 of file CaptchaTest.php.
|
private |
Definition at line 12 of file CaptchaTest.php.