r74369 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r74368
|
r74369
|
r74370
>
Date:
16:29, 6 October 2010
Author:
platonides
Status:
ok
Tags:
Comment:
Fix (marking as incomplete) the test ApiWatchTest::testGetRollbackToken for
Failed asserting that an array has the key <string:pageid>
when there's no [[Main Page]] (eg. it was installed in a different language).
Modified paths:
/trunk/phase3/maintenance/tests/phpunit/includes/api/ApiWatchTest.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/maintenance/tests/phpunit/includes/api/ApiWatchTest.php
—
—
@@ -154,6 +154,10 @@
155
155
* @depends testGetToken
156
156
*/
157
157
function testGetRollbackToken( $data ) {
158
+ if ( !Title::newFromText( 'Main Page' )->exists() ) {
159
+ $this->markTestIncomplete( "The article [[Main Page]] does not exist" );
160
+ }
161
+
158
162
$data = $this->doApiRequest( array(
159
163
'action' => 'query',
160
164
'prop' => 'revisions',
Status & tagging log
05:01, 8 October 2010
Brion VIBBER
(
talk
|
contribs
)
changed the
status
of r74369
[
removed:
new
added:
ok]