X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiQueryAllPagesTest.php;h=b482c3189a159d0d214b11168b360530a3d21e0b;hb=2c2dc593d25f652c04185e597b7f9de2c22c2e31;hp=3b21ff888df6a2e1f5f1b72a2ccf6f239b946097;hpb=ae69acacf567077b3f49d1fe6c3f3770e72a9093;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiQueryAllPagesTest.php b/tests/phpunit/includes/api/ApiQueryAllPagesTest.php index 3b21ff888d..b482c3189a 100644 --- a/tests/phpunit/includes/api/ApiQueryAllPagesTest.php +++ b/tests/phpunit/includes/api/ApiQueryAllPagesTest.php @@ -4,6 +4,8 @@ * @group API * @group Database * @group medium + * + * @covers ApiQueryAllPages */ class ApiQueryAllPagesTest extends ApiTestCase { @@ -13,14 +15,18 @@ class ApiQueryAllPagesTest extends ApiTestCase { } /** - *Test bug 25702 + *Test T27702 *Prefixes of API search requests are not handled with case sensitivity and may result *in wrong search results */ 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',