MediaWiki
REL1_24
|
API Database medium More...
Public Member Functions | |
addDBData () | |
Stub. | |
testBlockingActionWithNoToken () | |
UsageException The token parameter must be set | |
testMakeNormalBlock () | |
This test has probably always been broken and use an invalid token Bug tracking brokenness is https://bugzilla.wikimedia.org/35646. | |
Protected Member Functions | |
getTokens () | |
setUp () |
Stub.
If a test needs to add additional data to the database, it should implement this method and do so
Reimplemented from MediaWikiTestCase.
Definition at line 20 of file ApiBlockTest.php.
References $user, and User\newFromName().
ApiBlockTest::getTokens | ( | ) | [protected] |
Definition at line 16 of file ApiBlockTest.php.
References ApiTestCase\getTokenList().
Referenced by testMakeNormalBlock().
ApiBlockTest::setUp | ( | ) | [protected] |
Reimplemented from ApiTestCase.
Definition at line 11 of file ApiBlockTest.php.
References ApiTestCase\doLogin().
UsageException The token parameter must be set
Definition at line 71 of file ApiBlockTest.php.
References array(), ApiTestCase\doApiRequest(), and user.
This test has probably always been broken and use an invalid token Bug tracking brokenness is https://bugzilla.wikimedia.org/35646.
Root cause is https://gerrit.wikimedia.org/r/3434 Which made the Block/Unblock API to actually verify the token previously always considered valid (bug 34212).
Definition at line 39 of file ApiBlockTest.php.
References $user, array(), ApiTestCase\doApiRequest(), getTokens(), User\newFromName(), Block\newFromTarget(), and user.