MediaWiki
REL1_22
|
Protected Member Functions | |
checkC ($expected, $params, $expectedCount, $id, $continue=true) | |
Run query() and compare against expected values. | |
mergeResult (&$results, $newResult, $numericIds=false) | |
Recursively merge the new result returned from the query to the previous results. | |
query ($params, $expectedCount, $id, $useContinue=true) | |
Run query in a loop until no more values are available. | |
Protected Attributes | |
$mVerbose = false | |
Enable to print in-depth debugging info during the test run. | |
Private Member Functions | |
printResult ($data) | |
Static Private Member Functions | |
static | GetItems ($q, $moduleName, $name, &$print) |
Definition at line 29 of file ApiQueryContinueTestBase.php.
ApiQueryContinueTestBase::checkC | ( | $ | expected, |
$ | params, | ||
$ | expectedCount, | ||
$ | id, | ||
$ | continue = true |
||
) | [protected] |
Run query() and compare against expected values.
Definition at line 39 of file ApiQueryContinueTestBase.php.
References $params, $result, ApiQueryTestBase\assertResult(), and query().
Referenced by ApiQueryContinueTest\test1List(), ApiQueryContinueTest\test2Lists(), ApiQueryContinue2Test\testA(), ApiQueryContinueTest\testGen1Prop(), ApiQueryContinueTest\testGen1Prop1List(), ApiQueryContinueTest\testGen2Prop(), ApiQueryContinueTest\testGen2Prop2List1Meta(), ApiQueryContinueTest\testSameGenAndProp(), and ApiQueryContinueTest\testSameGenList().
static ApiQueryContinueTestBase::GetItems | ( | $ | q, |
$ | moduleName, | ||
$ | name, | ||
&$ | |||
) | [static, private] |
Definition at line 151 of file ApiQueryContinueTestBase.php.
Referenced by printResult().
ApiQueryContinueTestBase::mergeResult | ( | &$ | results, |
$ | newResult, | ||
$ | numericIds = false |
||
) | [protected] |
Recursively merge the new result returned from the query to the previous results.
mixed | $results | |
mixed | $newResult | |
bool | $numericIds | If true, treat keys as ids to be merged instead of appending |
Definition at line 167 of file ApiQueryContinueTestBase.php.
References $key, $sort, $value, and as.
Referenced by query().
ApiQueryContinueTestBase::printResult | ( | $ | data | ) | [private] |
Definition at line 115 of file ApiQueryContinueTestBase.php.
References array(), as, GetItems(), and print.
Referenced by query().
ApiQueryContinueTestBase::query | ( | $ | params, |
$ | expectedCount, | ||
$ | id, | ||
$ | useContinue = true |
||
) | [protected] |
Run query in a loop until no more values are available.
array | $params | api parameters |
int | $expectedCount | max number of iterations |
string | $id | unit test id |
boolean | $useContinue | true to use smart continue |
Exception |
Definition at line 53 of file ApiQueryContinueTestBase.php.
References $count, $params, $result, array(), ApiTestCase\doApiRequest(), empty, fail, mergeResult(), print, and printResult().
Referenced by checkC(), ApiQueryContinueTest\test1List(), ApiQueryContinueTest\test2Lists(), ApiQueryContinue2Test\testA(), ApiQueryContinueTest\testGen1Prop(), ApiQueryContinueTest\testGen1Prop1List(), ApiQueryContinueTest\testGen2Prop(), ApiQueryContinueTest\testGen2Prop2List1Meta(), ApiQueryContinueTest\testSameGenAndProp(), and ApiQueryContinueTest\testSameGenList().
ApiQueryContinueTestBase::$mVerbose = false [protected] |
Enable to print in-depth debugging info during the test run.
Definition at line 34 of file ApiQueryContinueTestBase.php.