diff options
Diffstat (limited to 'tests/phpunit/includes/api/query')
-rw-r--r-- | tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php b/tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php index 2a0998ba7193..893694c78141 100644 --- a/tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php +++ b/tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php @@ -77,6 +77,7 @@ class ApiQueryWatchlistIntegrationTest extends ApiTestCase { } private function doAnonPageEdit( LinkTarget $target, $content, $summary ) { + $this->disableAutoCreateTempUser(); $this->editPage( $target, $content, @@ -86,8 +87,8 @@ class ApiQueryWatchlistIntegrationTest extends ApiTestCase { ); } - // Requires call to $this->enableAutoCreateTempUser() first. private function doTempPageEdit( LinkTarget $target, $content, $summary ) { + $this->enableAutoCreateTempUser(); $this->editPage( $target, $content, @@ -911,7 +912,6 @@ class ApiQueryWatchlistIntegrationTest extends ApiTestCase { } public function testShowAnonParamsTemp() { - $this->enableAutoCreateTempUser(); $user = $this->getLoggedInTestUser(); $target = new TitleValue( NS_MAIN, 'ApiQueryWatchlistIntegrationTestPage' ); $this->doTempPageEdit( |