Commit graph

16 commits

Author SHA1 Message Date
Alexandre Emsenhuber
845767dd09 Use WikiPage instead of Article to call doEdit() and getId() 2012-02-06 11:19:14 +00:00
Alexandre Emsenhuber
705c7d3951 Use LinkCache::singleton()->clear() instead of using a local variable so that I can see what LinkCache::singleton() will be used for directly in grep 2011-12-21 18:46:39 +00:00
Brion Vibber
f79d1d3ffb * (bug 32712) Fix for search indexing of pages with certain unicode chars following URL
A regex in SearchUpdate was built for ancient pure ISO 8859-1 and looked for \xa0-\xff bytes -- this caused the regex to cut off partway through if there was a char containing a byte in the \x80-\x9f range.
Fixed regex to pass \x80-\xff instead.

Added a test case to SearchUpdateTest which checks for this case (example text run through the update squash algo, then run through preg_replace with a /u param to make sure it gets treated as UTF-8 and checking whether it breaks.)
2011-11-30 00:36:34 +00:00
Sam Reed
9d41b95053 Kill various unused variables
Comment some out also

Add some bits of documentation
2011-10-29 01:17:26 +00:00
Sam Reed
6906724935 Add, update, tweak documentation
Fix document comment blocks

Tweak some returns
2011-10-26 03:45:13 +00:00
Sam Reed
9ceb44a598 Fixup some assignments in conditionals
Add/normalise some more return statements
2011-10-16 03:27:12 +00:00
Chad Horohoe
41b8ec6031 Merge SearchDbTest into SearchEngineTest. No real need for two classes here anymore, and it's kind of confusing if you try to run the stub by itself.
Also did some misc. cleanup while I was here

Results: OK (5 tests, 16 assertions)
2011-06-28 22:26:22 +00:00
Platonides
807ea51cb3 Mark as needing a db.
Remove double data insertion
2011-06-16 21:06:11 +00:00
Sam Reed
f2875b43f3 Fix indenting 2011-06-16 20:57:31 +00:00
Max Semenik
f1415babe0 Use getSearchEngine() instead of constructing class name manually 2011-06-03 19:55:37 +00:00
Chad Horohoe
db833df9dc Remove useless bootstrap inclusions 2011-06-03 04:25:21 +00:00
Alexandre Emsenhuber
71eea5047a Follow-up r87955: fix comment 2011-05-13 09:30:19 +00:00
Alexandre Emsenhuber
0cf63ddea4 Use Article::doEdit(), much, much easier 2011-05-13 09:28:09 +00:00
Chad Horohoe
447529064b * verbose and color default output from phpunit
* Make a bunch of tests subclass MediaWikiTestCase
* Parser tests and ResourceLoaderTest can't subclass it yet due to various issues
2010-12-28 18:17:16 +00:00
Chad Horohoe
5f528203aa Rename MediaWikiTestSetup to MediaWikiTestCase: this is going to be the base class for all unit tests from now on 2010-12-28 17:45:33 +00:00
Chad Horohoe
23f69f10ed Per wikitech-l discussion: Move tests from maintenance/tests/ to tests/. They're not strictly maintenance scripts, and some people want to do a selective checkout that doesn't include the tests. There's still debate on whether we should include these in the release downloads, but we had a pretty firm consensus to move this. 2010-12-14 16:26:35 +00:00