MediaWiki
REL1_23
|
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 77 of file SearchEngineTest.php.
References $matches, array(), and MediaWikiTestCase\isWikitextNS().
Referenced by testFullWidth(), testTextPowerSearch(), testTextSearch(), testTextTitlePowerSearch(), and testTitleSearch().
SearchEngineTest::insertPage | ( | $ | pageName, |
$ | text, | ||
$ | ns | ||
) | [protected] |
Insert a new page.
$pageName | String: page name |
$text | String: page's content |
$n | Integer: unused |
Definition at line 106 of file SearchEngineTest.php.
Referenced by addPages().
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 123 of file SearchEngineTest.php.
References array(), and fetchIds().
Definition at line 149 of file SearchEngineTest.php.
References array(), and fetchIds().
Definition at line 142 of file SearchEngineTest.php.
References array(), and fetchIds().
Definition at line 170 of file SearchEngineTest.php.
References array(), and fetchIds().
Definition at line 160 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.