aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/query/ApiQueryContinue2Test.php
diff options
context:
space:
mode:
authorBrad Jorsch <bjorsch@wikimedia.org>2014-08-06 09:56:53 +0100
committerKunal Mehta <legoktm@gmail.com>2014-10-13 15:26:45 -0700
commitaf0121f9c83b52ed5ba1eba082494ac7cd9c97b6 (patch)
tree672d4dad204f366c6b826342254965df15d78db2 /tests/phpunit/includes/api/query/ApiQueryContinue2Test.php
parentf0f675be341d9797c214632167f54935fdc77d1b (diff)
downloadmediawikicore-af0121f9c83b52ed5ba1eba082494ac7cd9c97b6.tar.gz
mediawikicore-af0121f9c83b52ed5ba1eba082494ac7cd9c97b6.zip
API: Add "batchcomplete" to simplified continuation result
With the query-continue style of continuation, it's easy for the client to know when a batch of pages from the generator is complete. The simplified continuation should support this too, and without requiring the client to parse the "continue" result property. Change-Id: Ie407e2e27c017e8813143859cc58674553bc641b
Diffstat (limited to 'tests/phpunit/includes/api/query/ApiQueryContinue2Test.php')
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryContinue2Test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQueryContinue2Test.php b/tests/phpunit/includes/api/query/ApiQueryContinue2Test.php
index 347cd6f81067..46f1b7b0ef5b 100644
--- a/tests/phpunit/includes/api/query/ApiQueryContinue2Test.php
+++ b/tests/phpunit/includes/api/query/ApiQueryContinue2Test.php
@@ -62,7 +62,8 @@ class ApiQueryContinue2Test extends ApiQueryContinueTestBase {
);
};
// generator + 1 prop + 1 list
- $data = $this->query( $mk( 99, 99, true ), 1, 'g1p', false );
+ $data = $this->query( $mk( 99, 99, true ), 1, 'g1p', false ) +
+ array( 'batchcomplete' => '' );
$this->checkC( $data, $mk( 1, 1, true ), 6, 'g1p-11t' );
$this->checkC( $data, $mk( 2, 2, true ), 3, 'g1p-22t' );
$this->checkC( $data, $mk( 1, 1, false ), 6, 'g1p-11f' );