26 require_once
'ApiQueryTestBase.php';
50 $this->
editPage(
'AQBT-All',
'[[Category:AQBT-Cat]] [[AQBT-Links]] {{AQBT-T}}' );
51 $this->
editPage(
'AQBT-Categories',
'[[Category:AQBT-Cat]]' );
52 $this->
editPage(
'AQBT-Links',
'[[AQBT-All]] [[AQBT-Categories]] [[AQBT-Templates]]' );
53 $this->
editPage(
'AQBT-Templates',
'{{AQBT-T}}' );
57 $this->
editPage(
'AQBT-All',
'[[Category:AQBT-Cat]] [[AQBT-Links]] {{AQBT-T}}' );
58 $this->
editPage(
'AQBT-Templates',
'{{AQBT-T}}' );
59 }
catch ( Exception
$e ) {
60 $this->exceptionFromAddDBData =
$e;
65 array(
'prop' =>
'links',
'titles' =>
'AQBT-All' ),
70 'title' =>
'AQBT-All',
72 array(
'ns' => 0,
'title' =>
'AQBT-Links' ),
79 array(
'prop' =>
'templates',
'titles' =>
'AQBT-All' ),
84 'title' =>
'AQBT-All',
86 array(
'ns' => 10,
'title' =>
'Template:AQBT-T' ),
93 array(
'prop' =>
'categories',
'titles' =>
'AQBT-All' ),
98 'title' =>
'AQBT-All',
99 'categories' =>
array(
100 array(
'ns' => 14,
'title' =>
'Category:AQBT-Cat' ),
107 array(
'list' =>
'allpages',
'apprefix' =>
'AQBT-' ),
109 array(
'pageid' => 1,
'ns' => 0,
'title' =>
'AQBT-All' ),
110 array(
'pageid' => 2,
'ns' => 0,
'title' =>
'AQBT-Categories' ),
111 array(
'pageid' => 3,
'ns' => 0,
'title' =>
'AQBT-Links' ),
112 array(
'pageid' => 4,
'ns' => 0,
'title' =>
'AQBT-Templates' ),
117 array(
'list' =>
'alllinks',
'alprefix' =>
'AQBT-' ),
119 array(
'ns' => 0,
'title' =>
'AQBT-All' ),
120 array(
'ns' => 0,
'title' =>
'AQBT-Categories' ),
121 array(
'ns' => 0,
'title' =>
'AQBT-Links' ),
122 array(
'ns' => 0,
'title' =>
'AQBT-Templates' ),
127 array(
'list' =>
'alltransclusions',
'atprefix' =>
'AQBT-' ),
129 array(
'ns' => 10,
'title' =>
'Template:AQBT-T' ),
130 array(
'ns' => 10,
'title' =>
'Template:AQBT-T' ),
136 array(
'list' =>
'allcategories',
'acprefix' =>
'AQBT-' ),
138 array(
'*' =>
'AQBT-Cat' ),
143 array(
'list' =>
'backlinks',
'bltitle' =>
'AQBT-Links' ),
145 array(
'pageid' => 1,
'ns' => 0,
'title' =>
'AQBT-All' ),
150 array(
'list' =>
'embeddedin',
'eititle' =>
'Template:AQBT-T' ),
152 array(
'pageid' => 1,
'ns' => 0,
'title' =>
'AQBT-All' ),
153 array(
'pageid' => 4,
'ns' => 0,
'title' =>
'AQBT-Templates' ),
158 array(
'list' =>
'categorymembers',
'cmtitle' =>
'Category:AQBT-Cat' ),
160 array(
'pageid' => 1,
'ns' => 0,
'title' =>
'AQBT-All' ),
161 array(
'pageid' => 2,
'ns' => 0,
'title' =>
'AQBT-Categories' ),
166 array(
'generator' =>
'allpages',
'gapprefix' =>
'AQBT-' ),
171 'title' =>
'AQBT-All' ),
175 'title' =>
'AQBT-Categories' ),
179 'title' =>
'AQBT-Links' ),
183 'title' =>
'AQBT-Templates' ),
188 array(
'generator' =>
'links',
'titles' =>
'AQBT-Links' ),
193 'title' =>
'AQBT-All' ),
197 'title' =>
'AQBT-Categories' ),
201 'title' =>
'AQBT-Templates' ),
206 array(
'prop' =>
'links' ),
209 array(
'ns' => 0,
'title' =>
'AQBT-Links' ),
215 array(
'prop' =>
'templates' ),
218 array(
'ns' => 10,
'title' =>
'Template:AQBT-T' ) ) ),
220 array(
'ns' => 10,
'title' =>
'Template:AQBT-T' ) ) ),
228 $this->
check( self::$links );
229 $this->
check( self::$templates );
230 $this->
check( self::$categories );
237 $this->
check( self::$allpages );
238 $this->
check( self::$alllinks );
239 $this->
check( self::$alltransclusions );
243 $this->
check( self::$backlinks );
244 $this->
check( self::$embeddedin );
245 $this->
check( self::$categorymembers );
264 self::$alltransclusions,
269 self::$categorymembers
279 self::$alltransclusions,
284 self::$categorymembers
293 $this->
check( self::$generatorAllpages );
296 self::$generatorAllpages,
299 $this->
check( self::$generatorLinks );
302 self::$generatorLinks,
303 self::$generatorLinksPropLinks ) );
306 self::$generatorLinks,
307 self::$generatorLinksPropTemplates ) );
310 self::$generatorLinks,
311 self::$generatorLinksPropLinks,
312 self::$generatorLinksPropTemplates ) );
315 self::$generatorLinks,
316 self::$generatorLinksPropLinks,
317 self::$generatorLinksPropTemplates,
320 self::$alltransclusions,
325 self::$categorymembers ) );
332 $this->
editPage(
'AQBT-Target',
'test' );
333 $this->
editPage(
'AQBT-Redir',
'#REDIRECT [[AQBT-Target]]' );
335 array(
'generator' =>
'backlinks',
'gbltitle' =>
'AQBT-Target',
'redirects' =>
'1' ),
337 'redirects' =>
array(
339 'from' =>
'AQBT-Redir',
340 'to' =>
'AQBT-Target',
347 'title' =>
'AQBT-Target',