MediaWiki
REL1_31
ApiUnblockTest.php
Go to the documentation of this file.
1
<?php
2
10
class
ApiUnblockTest
extends
ApiTestCase
{
14
public
function
testWithNoToken
() {
15
$this->
doApiRequest
(
16
[
17
'action'
=>
'unblock'
,
18
'user'
=>
'UTApiBlockee'
,
19
'reason'
=>
'Some reason'
,
20
]
21
);
22
}
23
}
ApiTestCase
Definition
ApiTestCase.php:5
ApiTestCase\doApiRequest
doApiRequest(array $params, array $session=null, $appendModule=false, User $user=null, $tokenType=null)
Does the API request and returns the result.
Definition
ApiTestCase.php:100
ApiUnblockTest
API Database medium.
Definition
ApiUnblockTest.php:10
ApiUnblockTest\testWithNoToken
testWithNoToken()
ApiUsageException.
Definition
ApiUnblockTest.php:14
tests
phpunit
includes
api
ApiUnblockTest.php
Generated on Mon Nov 25 2024 15:36:14 for MediaWiki by
1.10.0