wiki.techinc.nl/tests/phpunit/includes
Nik Everett 2ec9915816 Handle redirects during prefix search exact match
Prefix search attempts to find exact matches to the user's query that aren't
returned by plugins.  In some cases, like when the exact match is a redirect
and the target of the redirect is also in the search results, it would result
in multiple results in prefix search going the same place.  This looks really
silly when the top hit is "Barack obama" (a redirect) and the next one is
"Barack Obama" (the target of the redirect).

This handles a bunch of cases to do with redirects in the matches and when
the exact match is a redirect.

Bug: 736731
Change-Id: I49fe1ccec84bd5d1f44c6b91b260abf50f2cc3a1
2014-11-21 14:47:32 -05:00
..
actions Merge "Revert "Make an empty "?action=" parameter default to "view""" 2014-10-11 17:23:21 +00:00
api Remove require_once from some tests by adding classes to TestsAutoLoader 2014-11-12 20:24:08 +01:00
cache Use mergeMwGlobalArrayValue in LocalisationCacheTest 2014-10-23 17:42:36 +00:00
changes Migrate merge log to new log system 2014-10-21 16:49:06 +00:00
composer
config Remove deprecated GlobalVarConfig::set() 2014-10-20 16:43:08 +00:00
content Fix bypassing hooks in TextContentTest 2014-10-23 17:46:55 +00:00
db Remove require_once from some tests by adding classes to TestsAutoLoader 2014-11-12 20:24:08 +01:00
debug Add logging context to database logs 2014-11-19 17:59:55 +00:00
deferred Fixed spacing 2014-08-27 18:31:50 +02:00
diff Remove require_once from some tests by adding classes to TestsAutoLoader 2014-11-12 20:24:08 +01:00
exception Use setMwGlobals on execption tests 2014-11-13 21:11:18 +00:00
filebackend Remove MediaWikiPHPUnitCommand 2014-08-02 21:35:34 +00:00
filerepo Cleanup some docs (tests) 2014-08-11 20:06:52 +02:00
GlobalFunctions Use MWLogger logging for legacy logging methods 2014-10-29 11:55:08 -07:00
htmlform Add a few PHPUnit tests for HTMLAutoCompleteSelectField 2014-08-26 12:33:21 -07:00
installer Fix strict warning in FakeDatabasUpdater::setAppliedUpdates 2014-10-13 13:36:09 +00:00
jobqueue Remove useless sleep() in JobQueueTest 2014-10-24 14:31:00 +02:00
json hhvm: Detect json-c parser 2014-11-08 15:45:46 -07:00
libs Use cdb library and provide a back-compat layer 2014-11-19 18:39:27 +00:00
logging
mail Merge "Skip MailAddressTest::testNewFromUser on windows" 2014-09-30 22:38:47 +00:00
media FormatMetadata::fetchExtendedMetadata: Ignore multiple EXIF/XMP values 2014-11-12 19:10:05 +00:00
normal test: Clean up data providers that should be static 2014-09-18 12:52:44 -07:00
objectcache MediaWikiTestCase: Enforce children call parent::tearDown 2014-09-14 21:21:40 +02:00
parser test: Clean up data providers that should be static 2014-09-18 12:52:44 -07:00
password Strict standards: Static function PasswordTestCase::providePasswordTests() should not be abstract 2014-09-20 19:17:02 +02:00
poolcounter Break some long lines in maintenance, skins, tests 2014-07-24 19:03:17 +02:00
resourceloader resourceloader: Add support for delivering templates 2014-10-29 19:31:16 +00:00
search MediaWikiTestCase: Centralise insertPage() logic from SearchEngineTest 2014-09-22 14:56:32 -07:00
site Merge "Add at least one RTL language to the TestSites mock collection" 2014-07-29 09:44:00 +00:00
skins Fixed spacing 2014-08-27 18:31:50 +02:00
specialpage Add test cases to SpecialPageFactoryTest for registration via callback 2014-11-01 02:06:24 +01:00
specials Special:BookSources: Correct validation of ISBNs containing X 2014-10-01 19:14:39 +00:00
title test: Clean up data providers that should be static 2014-09-18 12:52:44 -07:00
upload UploadBaseTest: Use setMwGlobals() instead of juggling globals 2014-10-07 05:13:32 +02:00
utils Move CdbTest into includes/libs/cdb as well 2014-11-10 11:02:46 -08:00
ArrayUtilsTest.php
ArticleTablesTest.php ArticleTablesTest: Clarify test name and docs 2014-09-04 22:29:03 +00:00
ArticleTest.php
BlockTest.php Let BlockTest.php respect database constraints 2014-10-15 18:09:49 +00:00
CollationTest.php
DiffHistoryBlobTest.php
EditPageTest.php test: Clean up data providers that should be static 2014-09-18 12:52:44 -07:00
ExternalStoreTest.php
ExtraParserTest.php
FallbackTest.php
FauxRequestTest.php
FauxResponseTest.php
FormOptionsInitializationTest.php
FormOptionsTest.php
GitInfoTest.php Fix GitInfoTest::testValidJsonData on windows 2014-09-30 20:44:45 +00:00
HooksTest.php
HtmlFormatterTest.php Cleanup some docs (tests) 2014-08-11 20:06:52 +02:00
HtmlTest.php Add blanket support for mediawiki ui via globals 2014-08-15 14:48:00 -07:00
HttpTest.php HttpTest: Update cURL constants array 2014-10-07 22:21:16 +00:00
ImagePage404Test.php Cleanup some docs (tests) 2014-08-11 20:06:52 +02:00
ImagePageTest.php Correct variable names in @param to match method declarations 2014-08-13 21:48:28 +02:00
ImportTest.php Change position of <model> and <format> tags in XML dumps. 2014-10-31 16:49:58 +00:00
LanguageConverterTest.php
LicensesTest.php
LinkerTest.php PHPUnit: Add Database tags 2014-09-16 18:42:27 -07:00
LinkFilterTest.php
LinksUpdateTest.php
LocalFileTest.php
MediaWikiVersionFetcherTest.php
MessageTest.php Introduce Message::plaintextParam 2014-09-30 12:51:29 -07:00
MimeMagicTest.php Cleanup some docs (tests) 2014-08-11 20:06:52 +02:00
MovePageTest.php Move non-user specific things from Title::isValidMoveOperation() to MovePage 2014-09-19 20:11:59 +00:00
MWFunctionTest.php Deprecate MWFunction::newObj() in favor of ObjectFactory 2014-11-06 13:41:18 -07:00
MWNamespaceTest.php Standardize @todo 2014-07-23 22:27:20 +02:00
MWTimestampTest.php Avoid running of hooks when running MWTimestampTest 2014-10-23 17:50:36 +00:00
OutputPageTest.php resourceloader: Add support for delivering templates 2014-10-29 19:31:16 +00:00
PasswordTest.php PasswordFactory::newFromPlaintext( null ) needs to work 2014-09-29 21:42:33 +00:00
PathRouterTest.php
PreferencesTest.php
PrefixSearchTest.php Handle redirects during prefix search exact match 2014-11-21 14:47:32 -05:00
RequestContextTest.php RequestContextTest: Distinguish initial test from restored test 2014-10-15 12:42:45 +00:00
RevisionStorageTest.php
RevisionStorageTestContentHandlerUseDB.php
RevisionTest.php
SampleTest.php test: Clean up data providers that should be static 2014-09-18 12:52:44 -07:00
SanitizerTest.php Remove explict autoload from phpunit tests 2014-09-27 10:38:58 +02:00
SanitizerValidateEmailTest.php Standardize @todo 2014-07-23 22:27:20 +02:00
SiteConfigurationTest.php
SpecialPageTest.php Make UserNotLoggedIn redirect to login page 2014-08-07 13:38:16 -04:00
StatusTest.php Change @return to start with type 2014-08-20 20:35:41 +02:00
TemplateCategoriesTest.php
TestUser.php Fixed spacing 2014-10-30 17:50:19 +01:00
TimeAdjustTest.php
TitleArrayFromResultTest.php test: Clean up data providers that should be static 2014-09-18 12:52:44 -07:00
TitleMethodsTest.php Remove colon after @deprecated/@param/@todo/@note 2014-07-24 11:30:25 +02:00
TitlePermissionTest.php Fully replace Title::moveTo() with MovePage 2014-10-28 12:52:36 -07:00
TitleTest.php Use setMwGlobals in TitleTest::testGetPageViewLanguage 2014-10-16 19:44:39 +02:00
UserArrayFromResultTest.php test: Clean up data providers that should be static 2014-09-18 12:52:44 -07:00
UserTest.php Use setMwGlobals in UserTest::testPasswordExpire 2014-10-16 19:38:31 +02:00
WebRequestTest.php
WikiPageTest.php Fix doc of WikiPageTest::newPage 2014-10-31 11:44:16 +01:00
WikiPageTestContentHandlerUseDB.php
XmlJsTest.php test: Clean up data providers that should be static 2014-09-18 12:52:44 -07:00
XmlSelectTest.php
XmlTest.php Add blanket support for mediawiki ui via globals 2014-08-15 14:48:00 -07:00
XmlTypeCheckTest.php