MediaWiki  REL1_22
ApiQueryContinueTest Class Reference

Copyright © 2013 Yuri Astrakhan "<Firstname><Lastname>@gmail.com". More...

Inheritance diagram for ApiQueryContinueTest:
Collaboration diagram for ApiQueryContinueTest:

List of all members.

Public Member Functions

 addDBData ()
 Create a set of pages.
 test1List ()
 Test smart continue - list=allpages .
 test2Lists ()
 Test smart continue - list=allpages|alltransclusions .
 testGen1Prop ()
 Test smart continue - generator=allpages, prop=links .
 testGen1Prop1List ()
 Test smart continue - generator=allpages, prop=links, list=alltransclusions .
 testGen2Prop ()
 Test smart continue - generator=allpages, prop=links|templates .
 testGen2Prop2List1Meta ()
 Test smart continue - generator=allpages, prop=links|templates, list=alllinks|alltransclusions, meta=siteinfo .
 testSameGenAndProp ()
 Test smart continue - generator=templates, prop=templates .
 testSameGenList ()
 Test smart continue - generator=allpages, list=allpages .

Detailed Description

Copyright © 2013 Yuri Astrakhan "<Firstname><Lastname>@gmail.com".

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html These tests validate the new continue functionality of the api query module by doing multiple requests with varying parameters, merging the results, and checking that the result matches the full data received in one no-limits call.

API Database medium

Definition at line 32 of file ApiQueryContinueTest.php.


Member Function Documentation

Create a set of pages.

These must not change, otherwise the tests might give wrong results.

See also:
MediaWikiTestCase::addDBData()

Reimplemented from MediaWikiTestCase.

Definition at line 37 of file ApiQueryContinueTest.php.

References ApiTestCase\editPage().

Test smart continue - list=allpages .

Definition at line 59 of file ApiQueryContinueTest.php.

References array(), ApiQueryContinueTestBase\checkC(), and ApiQueryContinueTestBase\query().

Test smart continue - list=allpages|alltransclusions .

Definition at line 82 of file ApiQueryContinueTest.php.

References array(), ApiQueryContinueTestBase\checkC(), and ApiQueryContinueTestBase\query().

Test smart continue - generator=allpages, prop=links .

Definition at line 107 of file ApiQueryContinueTest.php.

References array(), ApiQueryContinueTestBase\checkC(), and ApiQueryContinueTestBase\query().

Test smart continue - generator=allpages, prop=links, list=alltransclusions .

Definition at line 161 of file ApiQueryContinueTest.php.

References array(), ApiQueryContinueTestBase\checkC(), and ApiQueryContinueTestBase\query().

Test smart continue - generator=allpages, prop=links|templates .

Definition at line 131 of file ApiQueryContinueTest.php.

References array(), ApiQueryContinueTestBase\checkC(), and ApiQueryContinueTestBase\query().

Test smart continue - generator=allpages, prop=links|templates, list=alllinks|alltransclusions, meta=siteinfo .

Definition at line 192 of file ApiQueryContinueTest.php.

References array(), ApiQueryContinueTestBase\checkC(), and ApiQueryContinueTestBase\query().

Test smart continue - generator=templates, prop=templates .

Definition at line 230 of file ApiQueryContinueTest.php.

References array(), ApiQueryContinueTestBase\checkC(), and ApiQueryContinueTestBase\query().

Test smart continue - generator=allpages, list=allpages .

Definition at line 275 of file ApiQueryContinueTest.php.

References array(), ApiQueryContinueTestBase\checkC(), and ApiQueryContinueTestBase\query().


The documentation for this class was generated from the following file: