aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php')
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php b/tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php
index a42aea0f6e77..825002ea0c9f 100644
--- a/tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php
@@ -17,8 +17,9 @@ class ApiQueryAllPagesTest extends ApiTestCase {
$title = Title::newFromText( 'Category:Template:xyz' );
$page = WikiPage::factory( $title );
- $page->doEditContent(
+ $page->doUserEditContent(
ContentHandler::makeContent( 'Some text', $page->getTitle() ),
+ $this->getTestSysop()->getUser(),
'inserting content'
);