Fix capitalization in ApiQueryBase::titlePartToKey()
authorbtongminh <bryan.tongminh@gmail.com>
Sun, 17 Nov 2013 17:52:54 +0000 (18:52 +0100)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 23 Dec 2013 17:53:43 +0000 (12:53 -0500)
commit1f47c9b9aecd590062e097820f109faa1524c1c7
treec32d4ec64ea9c4702d14614f0ec162a35f36650c
parentc9eaaf70939977469fd91d616892c9fb35404877
Fix capitalization in ApiQueryBase::titlePartToKey()

ApiQueryBase::titlePartToKey now allows an extra parameter that
indicates the namespace in order to properly capitalize the title part.

This allows list=allcategories, list=allimages, list=alllinks,
list=allpages, list=deletedrevs and list=filearchive to
handle case-sensitivity properly for all parameters.

Bug: 25702
Change-Id: Iaa5a71ec536f3716f54bc84b39f645545dfd8660
12 files changed:
RELEASE-NOTES-1.23
includes/api/ApiQueryAllCategories.php
includes/api/ApiQueryAllImages.php
includes/api/ApiQueryAllLinks.php
includes/api/ApiQueryAllPages.php
includes/api/ApiQueryBase.php
includes/api/ApiQueryDeletedrevs.php
includes/api/ApiQueryFilearchive.php
tests/TestsAutoLoader.php
tests/phpunit/includes/api/ApiQueryAllPagesTest.php [new file with mode: 0644]
tests/phpunit/includes/api/MockApiQueryBase.php [new file with mode: 0644]
tests/phpunit/includes/api/query/ApiQueryTest.php