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.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php b/tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php
index 825002ea0c9f..bf7b097cdeb8 100644
--- a/tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php
@@ -14,13 +14,13 @@ class ApiQueryAllPagesTest extends ApiTestCase {
* in wrong search results
*/
public function testPrefixNormalizationSearchBug() {
- $title = Title::newFromText( 'Category:Template:xyz' );
- $page = WikiPage::factory( $title );
-
- $page->doUserEditContent(
- ContentHandler::makeContent( 'Some text', $page->getTitle() ),
- $this->getTestSysop()->getUser(),
- 'inserting content'
+ $title = Title::makeTitle( NS_CATEGORY, 'Template:xyz' );
+ $this->editPage(
+ $title,
+ 'Some text',
+ 'inserting content',
+ NS_MAIN,
+ $this->getTestSysop()->getUser()
);
$result = $this->doApiRequest( [