MediaWiki
REL1_24
|
API Database medium ApiQuery More...
Public Member Functions | |
provideTestTitlePartToKey () | |
testTitlePartToKey ($titlePart, $namespace, $expected, $expectException) | |
Test the ApiBase::titlePartToKey function. | |
testTitlesAreRejectedIfInvalid () | |
testTitlesGetNormalized () | |
Protected Member Functions | |
setUp () | |
tearDown () | |
Protected Attributes | |
array | $hooks |
Storage for $wgHooks. |
API Database medium ApiQuery
Definition at line 9 of file ApiQueryTest.php.
Definition at line 117 of file ApiQueryTest.php.
References array().
ApiQueryTest::setUp | ( | ) | [protected] |
Reimplemented from ApiTestCase.
Definition at line 14 of file ApiQueryTest.php.
References $wgHooks, array(), ApiTestCase\doLogin(), global, and hooks.
ApiQueryTest::tearDown | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 30 of file ApiQueryTest.php.
ApiQueryTest::testTitlePartToKey | ( | $ | titlePart, |
$ | namespace, | ||
$ | expected, | ||
$ | expectException | ||
) |
Test the ApiBase::titlePartToKey function.
string | $titlePart | |
int | $namespace | |
string | $expected | |
string | $expectException | provideTestTitlePartToKey |
Definition at line 101 of file ApiQueryTest.php.
Definition at line 71 of file ApiQueryTest.php.
References $title, array(), ApiTestCase\doApiRequest(), and Title\newFromText().
Definition at line 37 of file ApiQueryTest.php.
References array(), ApiTestCase\doApiRequest(), global, Title\newFromText(), and MediaWikiTestCase\setMwGlobals().
Storage for $wgHooks.
Definition at line 12 of file ApiQueryTest.php.