tests related to API block action and its gettoken
authorReedy <reedy@wikimedia.org>
Tue, 3 Apr 2012 20:02:27 +0000 (21:02 +0100)
committerAntoine Musso <hashar@free.fr>
Tue, 3 Apr 2012 20:27:57 +0000 (22:27 +0200)
commitcdbfe8db8673f25c3caf70a1dc8c9b23dad54f45
tree67586830ff33d185ae10e47b0bd468d130fae566
parentb5511c68c311021f146954355cd702a43942eef4
tests related to API block action and its gettoken

Add tests for:
 - action=block and action=unblock gettoken
 - attempting to block or unblock a user with no token passed.

Patchset2: use a provider to have tests run against both 'block' and
'unblock' actions.

Change-Id: I686348ff4e2fe419c556acea2fa59dd203dc9440
tests/phpunit/includes/api/ApiBlockTest.php