MediaWiki  REL1_24
ApiBlockTest Class Reference

API Database medium More...

Inheritance diagram for ApiBlockTest:
Collaboration diagram for ApiBlockTest:

List of all members.

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 ()

Detailed Description

API Database medium

ApiBlock

Definition at line 10 of file ApiBlockTest.php.


Member Function Documentation

Stub.

If a test needs to add additional data to the database, it should implement this method and do so

Since:
1.18

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.


The documentation for this class was generated from the following file: