41 $this->
editPage(
'Template:AQCT-T1',
'**Template:AQCT-T1**' );
42 $this->
editPage(
'Template:AQCT-T2',
'**Template:AQCT-T2**' );
43 $this->
editPage(
'Template:AQCT-T3',
'**Template:AQCT-T3**' );
44 $this->
editPage(
'Template:AQCT-T4',
'**Template:AQCT-T4**' );
45 $this->
editPage(
'Template:AQCT-T5',
'**Template:AQCT-T5**' );
47 $this->
editPage(
'AQCT-1',
'**AQCT-1** {{AQCT-T2}} {{AQCT-T3}} {{AQCT-T4}} {{AQCT-T5}}' );
48 $this->
editPage(
'AQCT-2',
'[[AQCT-1]] **AQCT-2** {{AQCT-T3}} {{AQCT-T4}} {{AQCT-T5}}' );
49 $this->
editPage(
'AQCT-3',
'[[AQCT-1]] [[AQCT-2]] **AQCT-3** {{AQCT-T4}} {{AQCT-T5}}' );
50 $this->
editPage(
'AQCT-4',
'[[AQCT-1]] [[AQCT-2]] [[AQCT-3]] **AQCT-4** {{AQCT-T5}}' );
51 $this->
editPage(
'AQCT-5',
'[[AQCT-1]] [[AQCT-2]] [[AQCT-3]] [[AQCT-4]] **AQCT-5**' );
52 }
catch ( Exception
$e ) {
53 $this->exceptionFromAddDBData =
$e;
62 $this->mVerbose =
false;
63 $mk =
function ( $l ) {
66 'apprefix' =>
'AQCT-',
70 $data = $this->
query( $mk( 99 ), 1,
'1L',
false ) +
71 [
'batchcomplete' =>
true ];
74 $this->
checkC( $data, $mk( 1 ), 5,
'1L-1' );
75 $this->
checkC( $data, $mk( 2 ), 3,
'1L-2' );
76 $this->
checkC( $data, $mk( 3 ), 2,
'1L-3' );
77 $this->
checkC( $data, $mk( 4 ), 2,
'1L-4' );
78 $this->
checkC( $data, $mk( 5 ), 1,
'1L-5' );
86 $this->mVerbose =
false;
87 $mk =
function ( $l1, $l2 ) {
89 'list' =>
'allpages|alltransclusions',
90 'apprefix' =>
'AQCT-',
91 'atprefix' =>
'AQCT-',
98 $data = $this->
query( $mk( 99, 99 ), 1,
'2L',
false ) +
99 [
'batchcomplete' =>
true ];
100 $this->
checkC( $data, $mk( 1, 1 ), 5,
'2L-11' );
101 $this->
checkC( $data, $mk( 2, 2 ), 3,
'2L-22' );
102 $this->
checkC( $data, $mk( 3, 3 ), 2,
'2L-33' );
103 $this->
checkC( $data, $mk( 4, 4 ), 2,
'2L-44' );
104 $this->
checkC( $data, $mk( 5, 5 ), 1,
'2L-55' );
112 $this->mVerbose =
false;
113 $mk =
function ( $g, $p ) {
115 'generator' =>
'allpages',
116 'gapprefix' =>
'AQCT-',
123 $data = $this->
query( $mk( 99, 99 ), 1,
'G1P',
false ) +
124 [
'batchcomplete' =>
true ];
125 $this->
checkC( $data, $mk( 1, 1 ), 11,
'G1P-11' );
126 $this->
checkC( $data, $mk( 2, 2 ), 6,
'G1P-22' );
127 $this->
checkC( $data, $mk( 3, 3 ), 4,
'G1P-33' );
128 $this->
checkC( $data, $mk( 4, 4 ), 3,
'G1P-44' );
129 $this->
checkC( $data, $mk( 5, 5 ), 2,
'G1P-55' );
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' );
239 $this->mVerbose =
false;
240 $mk =
function ( $g, $gDir, $p, $pDir ) {
242 'titles' =>
'AQCT-1',
243 'generator' =>
'templates',
245 'gtldir' => $gDir ?
'ascending' :
'descending',
246 'prop' =>
'templates',
248 'tldir' => $pDir ?
'ascending' :
'descending',
252 $data = $this->
query( $mk( 99,
true, 99,
true ), 1,
'G=P',
false ) +
253 [
'batchcomplete' =>
true ];
255 $this->
checkC( $data, $mk( 1,
true, 1,
true ), 4,
'G=P-1t1t' );
256 $this->
checkC( $data, $mk( 2,
true, 2,
true ), 2,
'G=P-2t2t' );
257 $this->
checkC( $data, $mk( 3,
true, 3,
true ), 2,
'G=P-3t3t' );
258 $this->
checkC( $data, $mk( 1,
true, 3,
true ), 4,
'G=P-1t3t' );
259 $this->
checkC( $data, $mk( 3,
true, 1,
true ), 2,
'G=P-3t1t' );
261 $this->
checkC( $data, $mk( 1,
true, 1,
false ), 4,
'G=P-1t1f' );
262 $this->
checkC( $data, $mk( 2,
true, 2,
false ), 2,
'G=P-2t2f' );
263 $this->
checkC( $data, $mk( 3,
true, 3,
false ), 2,
'G=P-3t3f' );
264 $this->
checkC( $data, $mk( 1,
true, 3,
false ), 4,
'G=P-1t3f' );
265 $this->
checkC( $data, $mk( 3,
true, 1,
false ), 2,
'G=P-3t1f' );
267 $this->
checkC( $data, $mk( 1,
false, 1,
true ), 4,
'G=P-1f1t' );
268 $this->
checkC( $data, $mk( 2,
false, 2,
true ), 2,
'G=P-2f2t' );
269 $this->
checkC( $data, $mk( 3,
false, 3,
true ), 2,
'G=P-3f3t' );
270 $this->
checkC( $data, $mk( 1,
false, 3,
true ), 4,
'G=P-1f3t' );
271 $this->
checkC( $data, $mk( 3,
false, 1,
true ), 2,
'G=P-3f1t' );
273 $this->
checkC( $data, $mk( 1,
false, 1,
false ), 4,
'G=P-1f1f' );
274 $this->
checkC( $data, $mk( 2,
false, 2,
false ), 2,
'G=P-2f2f' );
275 $this->
checkC( $data, $mk( 3,
false, 3,
false ), 2,
'G=P-3f3f' );
276 $this->
checkC( $data, $mk( 1,
false, 3,
false ), 4,
'G=P-1f3f' );
277 $this->
checkC( $data, $mk( 3,
false, 1,
false ), 2,
'G=P-3f1f' );
285 $this->mVerbose =
false;
286 $mk =
function ( $g, $gDir, $l, $pDir ) {
288 'generator' =>
'allpages',
289 'gapprefix' =>
'AQCT-',
291 'gapdir' => $gDir ?
'ascending' :
'descending',
292 'list' =>
'allpages',
293 'apprefix' =>
'AQCT-',
295 'apdir' => $pDir ?
'ascending' :
'descending',
299 $data = $this->
query( $mk( 99,
true, 99,
true ), 1,
'G=L',
false ) +
300 [
'batchcomplete' =>
true ];
302 $this->
checkC( $data, $mk( 1,
true, 1,
true ), 5,
'G=L-1t1t' );
303 $this->
checkC( $data, $mk( 2,
true, 2,
true ), 3,
'G=L-2t2t' );
304 $this->
checkC( $data, $mk( 3,
true, 3,
true ), 2,
'G=L-3t3t' );
305 $this->
checkC( $data, $mk( 1,
true, 3,
true ), 5,
'G=L-1t3t' );
306 $this->
checkC( $data, $mk( 3,
true, 1,
true ), 5,
'G=L-3t1t' );
307 $this->
checkC( $data, $mk( 1,
true, 1,
false ), 5,
'G=L-1t1f' );
308 $this->
checkC( $data, $mk( 2,
true, 2,
false ), 3,
'G=L-2t2f' );
309 $this->
checkC( $data, $mk( 3,
true, 3,
false ), 2,
'G=L-3t3f' );
310 $this->
checkC( $data, $mk( 1,
true, 3,
false ), 5,
'G=L-1t3f' );
311 $this->
checkC( $data, $mk( 3,
true, 1,
false ), 5,
'G=L-3t1f' );
312 $this->
checkC( $data, $mk( 1,
false, 1,
true ), 5,
'G=L-1f1t' );
313 $this->
checkC( $data, $mk( 2,
false, 2,
true ), 3,
'G=L-2f2t' );
314 $this->
checkC( $data, $mk( 3,
false, 3,
true ), 2,
'G=L-3f3t' );
315 $this->
checkC( $data, $mk( 1,
false, 3,
true ), 5,
'G=L-1f3t' );
316 $this->
checkC( $data, $mk( 3,
false, 1,
true ), 5,
'G=L-3f1t' );
317 $this->
checkC( $data, $mk( 1,
false, 1,
false ), 5,
'G=L-1f1f' );
318 $this->
checkC( $data, $mk( 2,
false, 2,
false ), 3,
'G=L-2f2f' );
319 $this->
checkC( $data, $mk( 3,
false, 3,
false ), 2,
'G=L-3f3f' );
320 $this->
checkC( $data, $mk( 1,
false, 3,
false ), 5,
'G=L-1f3f' );
321 $this->
checkC( $data, $mk( 3,
false, 1,
false ), 5,
'G=L-3f1f' );