From: aude Date: Thu, 8 Nov 2012 17:05:46 +0000 (+0100) Subject: fix testEditCount to work with non-wikitext content in main NS X-Git-Tag: 1.31.0-rc.0~21690^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=c5ca90e715ca8e96f9ac9f0b5b615204ae8d89ea;p=lhc%2Fweb%2Fwiklou.git fix testEditCount to work with non-wikitext content in main NS consistent with WikiPageTest and other places, perform the test with the Help namespace as a workaround for now. Change-Id: I2b766c17f35e0e79662b6302c122225a1a33e7be --- diff --git a/tests/phpunit/includes/UserTest.php b/tests/phpunit/includes/UserTest.php index bf9468ae23..e5a014d21c 100644 --- a/tests/phpunit/includes/UserTest.php +++ b/tests/phpunit/includes/UserTest.php @@ -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 ); }