X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiQueryAllPagesTest.php;h=76872362cdc6a9abd62aeb191ff24d4b001ff217;hb=e99f5e80d2b9ba5e2a053ff9855e68b10f79b751;hp=3b21ff888df6a2e1f5f1b72a2ccf6f239b946097;hpb=d716155c8b2d6e4a51a4110195cee7a1794846e8;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiQueryAllPagesTest.php b/tests/phpunit/includes/api/ApiQueryAllPagesTest.php index 3b21ff888d..76872362cd 100644 --- a/tests/phpunit/includes/api/ApiQueryAllPagesTest.php +++ b/tests/phpunit/includes/api/ApiQueryAllPagesTest.php @@ -20,7 +20,11 @@ class ApiQueryAllPagesTest extends ApiTestCase { public function testPrefixNormalizationSearchBug() { $title = Title::newFromText( 'Category:Template:xyz' ); $page = WikiPage::factory( $title ); - $page->doEdit( 'Some text', 'inserting content' ); + + $page->doEditContent( + ContentHandler::makeContent( 'Some text', $page->getTitle() ), + 'inserting content' + ); $result = $this->doApiRequest( [ 'action' => 'query',