MediaWiki
master
|
API Database medium. More...
Public Member Functions | |
getTokens () | |
testGetRollbackToken () | |
testWatchClear () | |
testWatchEdit More... | |
testWatchEdit () | |
testWatchProtect () | |
testWatchRollback ( $data) | |
Broken Broken because there is currently no revision info in the $pageinfo. More... | |
![]() | |
testApiTestGroup () | |
Additional Inherited Members | |
![]() | |
static | apiExceptionHasCode (ApiUsageException $ex, $code) |
![]() | |
doApiRequest (array $params, array $session=null, $appendModule=false, User $user=null, $tokenType=null) | |
Does the API request and returns the result. More... | |
doApiRequestWithToken (array $params, array $session=null, User $user=null, $tokenType='auto') | |
Convenience function to access the token parameter of doApiRequest() more succinctly. More... | |
doLogin ( $testUser=null) | |
Previously this would do API requests to log in, as well as setting $wgUser and the request context's user. More... | |
getTokenList (TestUser $user, $session=null) | |
setExpectedApiException ( $msg, $code=null, array $data=null, $httpCode=0) | |
Expect an ApiUsageException to be thrown with the given parameters, which are the same as ApiUsageException::newWithMessage()'s parameters. More... | |
setUp () | |
tearDown () | |
![]() | |
setUp () | |
![]() | |
static | getErrorFormatter () |
![]() | |
ApiTestContext | $apiContext |
![]() | |
static | $apiUrl |
static | $errorFormatter = null |
API Database medium.
Definition at line 11 of file ApiWatchTest.php.
ApiWatchTest::getTokens | ( | ) |
Definition at line 12 of file ApiWatchTest.php.
References ApiTestCase\getTokenList().
Referenced by testGetRollbackToken(), testWatchClear(), testWatchEdit(), and testWatchProtect().
ApiWatchTest::testGetRollbackToken | ( | ) |
Definition at line 88 of file ApiWatchTest.php.
References $keys, ApiTestCase\doApiRequest(), getTokens(), and Title\newFromText().
ApiWatchTest::testWatchClear | ( | ) |
testWatchEdit
Definition at line 35 of file ApiWatchTest.php.
References $tokens, as, ApiTestCase\doApiRequest(), and getTokens().
ApiWatchTest::testWatchEdit | ( | ) |
Definition at line 16 of file ApiWatchTest.php.
References $tokens, ApiTestCase\doApiRequest(), and getTokens().
ApiWatchTest::testWatchProtect | ( | ) |
Definition at line 72 of file ApiWatchTest.php.
References $tokens, ApiTestCase\doApiRequest(), and getTokens().
ApiWatchTest::testWatchRollback | ( | $data | ) |
Broken Broken because there is currently no revision info in the $pageinfo.
testGetRollbackToken
Definition at line 124 of file ApiWatchTest.php.
References $keys, and ApiTestCase\doApiRequest().