fix testEditCount to work with non-wikitext content in main NS
authoraude <aude.wiki@gmail.com>
Thu, 8 Nov 2012 17:05:46 +0000 (18:05 +0100)
committeraude <aude.wiki@gmail.com>
Thu, 8 Nov 2012 17:06:32 +0000 (18:06 +0100)
consistent with WikiPageTest and other places, perform the test
with the Help namespace as a workaround for now.

Change-Id: I2b766c17f35e0e79662b6302c122225a1a33e7be

tests/phpunit/includes/UserTest.php

index bf9468a..e5a014d 100644 (file)
@@ -173,7 +173,7 @@ class UserTest extends MediaWikiTestCase {
                $user->addToDatabase();
 
                // let the user have a few (3) edits
-               $page = WikiPage::factory( Title::newFromText( 'UserTest_EditCount' ) );
+               $page = WikiPage::factory( Title::newFromText( 'Help:UserTest_EditCount' ) );
                for( $i = 0; $i < 3; $i++ ) {
                        $page->doEdit( (string) $i, 'test', 0, false, $user );
                }