MediaWiki
REL1_24
|
Search Database More...
Public Member Functions | |
testFullWidth () | |
testTextPowerSearch () | |
testTextSearch () | |
testTextTitlePowerSearch () | |
testTitleSearch () | |
Protected Member Functions | |
addPages () | |
fetchIds ($results) | |
insertPage ($pageName, $text, $ns) | |
Insert a new page. | |
setUp () | |
Checks for database type & version. | |
tearDown () | |
Protected Attributes | |
$pageList | |
SearchEngine | $search |
Search Database
SearchEngine<extended>
Definition at line 10 of file SearchEngineTest.php.
SearchEngineTest::addPages | ( | ) | [protected] |
Definition at line 52 of file SearchEngineTest.php.
References insertPage(), and MediaWikiTestCase\isWikitextNS().
SearchEngineTest::fetchIds | ( | $ | results | ) | [protected] |
Definition at line 81 of file SearchEngineTest.php.
References $matches, array(), and MediaWikiTestCase\isWikitextNS().
Referenced by testFullWidth(), testTextPowerSearch(), testTextSearch(), testTextTitlePowerSearch(), and testTitleSearch().
SearchEngineTest::insertPage | ( | $ | pageName, |
$ | text, | ||
$ | ns | ||
) | [protected] |
SearchEngineTest::setUp | ( | ) | [protected] |
Checks for database type & version.
Will skip current test if DB does not support search.
Reimplemented from MediaWikiLangTestCase.
Definition at line 22 of file SearchEngineTest.php.
SearchEngineTest::tearDown | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 46 of file SearchEngineTest.php.
Definition at line 127 of file SearchEngineTest.php.
References array(), and fetchIds().
Definition at line 153 of file SearchEngineTest.php.
References array(), and fetchIds().
Definition at line 146 of file SearchEngineTest.php.
References array(), and fetchIds().
Definition at line 174 of file SearchEngineTest.php.
References array(), and fetchIds().
Definition at line 164 of file SearchEngineTest.php.
References array(), and fetchIds().
SearchEngineTest::$pageList [protected] |
Definition at line 16 of file SearchEngineTest.php.
SearchEngine SearchEngineTest::$search [protected] |
Definition at line 14 of file SearchEngineTest.php.