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-',
71 [
'batchcomplete' =>
true ];
86 $this->mVerbose =
false;
87 $mk =
function (
$l1,
$l2 ) {
89 'list' =>
'allpages|alltransclusions',
90 'apprefix' =>
'AQCT-',
91 'atprefix' =>
'AQCT-',
99 [
'batchcomplete' =>
true ];
112 $this->mVerbose =
false;
113 $mk =
function (
$g,
$p ) {
115 'generator' =>
'allpages',
116 'gapprefix' =>
'AQCT-',
124 [
'batchcomplete' =>
true ];
137 $this->mVerbose =
false;
140 'generator' =>
'allpages',
141 'gapprefix' =>
'AQCT-',
143 'prop' =>
'links|templates',
150 [
'batchcomplete' =>
true ];
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 ];
200 $this->mVerbose =
false;
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' );
230 $this->
checkC(
$data,
$mk( 5, 1, 1, 5, 5 ), 10,
'G2P2L1M-51155' );
239 $this->mVerbose =
false;
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 ];
285 $this->mVerbose =
false;
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 ];
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
checkC( $expected, $params, $expectedCount, $id, $continue=true)
Run query() and compare against expected values.
Copyright © 2013 Yuri Astrakhan "<Firstname><Lastname>@gmail.com".
testGen1Prop()
Test smart continue - generator=allpages, prop=links medium.
testSameGenList()
Test smart continue - generator=allpages, list=allpages medium.
testSameGenAndProp()
Test smart continue - generator=templates, prop=templates medium.
testGen2Prop()
Test smart continue - generator=allpages, prop=links|templates medium.
testGen1Prop1List()
Test smart continue - generator=allpages, prop=links, list=alltransclusions medium.
test1List()
Test smart continue - list=allpages medium.
testGen2Prop2List1Meta()
Test smart continue - generator=allpages, prop=links|templates, list=alllinks|alltransclusions,...
test2Lists()
Test smart continue - list=allpages|alltransclusions medium.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
returning false will NOT prevent logging $e
$data
Utility to generate mapping file used in mw.Title (phpCharToUpper.json)