137 $this->mVerbose =
false;
138 $mk =
function ( $g, $p1, $p2 ) {
140 'generator' =>
'allpages',
141 'gapprefix' =>
'AQCT-',
143 'prop' =>
'links|templates',
149 $data = $this->
query( $mk( 99, 99, 99 ), 1,
'G2P',
false ) +
150 [
'batchcomplete' =>
true ];
151 $this->
checkC( $data, $mk( 1, 1, 1 ), 16,
'G2P-111' );
152 $this->
checkC( $data, $mk( 2, 2, 2 ), 9,
'G2P-222' );
153 $this->
checkC( $data, $mk( 3, 3, 3 ), 6,
'G2P-333' );
154 $this->
checkC( $data, $mk( 4, 4, 4 ), 4,
'G2P-444' );
155 $this->
checkC( $data, $mk( 5, 5, 5 ), 2,
'G2P-555' );
156 $this->
checkC( $data, $mk( 5, 1, 1 ), 10,
'G2P-511' );
157 $this->
checkC( $data, $mk( 4, 2, 2 ), 7,
'G2P-422' );
158 $this->
checkC( $data, $mk( 2, 3, 3 ), 7,
'G2P-233' );
159 $this->
checkC( $data, $mk( 2, 4, 4 ), 5,
'G2P-244' );
160 $this->
checkC( $data, $mk( 1, 5, 5 ), 5,
'G2P-155' );
168 $this->mVerbose =
false;
169 $mk =
function ( $g, $p, $l ) {
171 'generator' =>
'allpages',
172 'gapprefix' =>
'AQCT-',
176 'list' =>
'alltransclusions',
177 'atprefix' =>
'AQCT-',
183 $data = $this->
query( $mk( 99, 99, 99 ), 1,
'G1P1L',
false ) +
184 [
'batchcomplete' =>
true ];
185 $this->
checkC( $data, $mk( 1, 1, 1 ), 11,
'G1P1L-111' );
186 $this->
checkC( $data, $mk( 2, 2, 2 ), 6,
'G1P1L-222' );
187 $this->
checkC( $data, $mk( 3, 3, 3 ), 4,
'G1P1L-333' );
188 $this->
checkC( $data, $mk( 4, 4, 4 ), 3,
'G1P1L-444' );
189 $this->
checkC( $data, $mk( 5, 5, 5 ), 2,
'G1P1L-555' );
190 $this->
checkC( $data, $mk( 5, 5, 1 ), 4,
'G1P1L-551' );
191 $this->
checkC( $data, $mk( 5, 5, 2 ), 2,
'G1P1L-552' );
200 $this->mVerbose =
false;
201 $mk =
function ( $g, $p1, $p2, $l1, $l2 ) {
203 'generator' =>
'allpages',
204 'gapprefix' =>
'AQCT-',
206 'prop' =>
'links|templates',
209 'list' =>
'alllinks|alltransclusions',
210 'alprefix' =>
'AQCT-',
213 'atprefix' =>
'AQCT-',
216 'meta' =>
'siteinfo',
217 'siprop' =>
'namespaces',
221 $data = $this->
query( $mk( 99, 99, 99, 99, 99 ), 1,
'G2P2L1M',
false ) +
222 [
'batchcomplete' =>
true ];
223 $this->
checkC( $data, $mk( 1, 1, 1, 1, 1 ), 16,
'G2P2L1M-11111' );
224 $this->
checkC( $data, $mk( 2, 2, 2, 2, 2 ), 9,
'G2P2L1M-22222' );
225 $this->
checkC( $data, $mk( 3, 3, 3, 3, 3 ), 6,
'G2P2L1M-33333' );
226 $this->
checkC( $data, $mk( 4, 4, 4, 4, 4 ), 4,
'G2P2L1M-44444' );
227 $this->
checkC( $data, $mk( 5, 5, 5, 5, 5 ), 2,
'G2P2L1M-55555' );
228 $this->
checkC( $data, $mk( 5, 5, 5, 1, 1 ), 4,
'G2P2L1M-55511' );
229 $this->
checkC( $data, $mk( 5, 5, 5, 2, 2 ), 2,
'G2P2L1M-55522' );
230 $this->
checkC( $data, $mk( 5, 1, 1, 5, 5 ), 10,
'G2P2L1M-51155' );
231 $this->
checkC( $data, $mk( 5, 2, 2, 5, 5 ), 5,
'G2P2L1M-52255' );