MediaWiki
master
|
Search Database More...
Public Member Functions | |
addDBData () | |
Stub. | |
fetchIds ($results) | |
insertPage ($pageName, $text, $ns) | |
Insert a new page. | |
pageExists ($title) | |
testFullWidth () | |
testTextPowerSearch () | |
testTextSearch () | |
testTextTitlePowerSearch () | |
testTitleSearch () | |
Public Attributes | |
$pageList | |
Protected Member Functions | |
setUp () | |
Checks for database type & version. | |
tearDown () | |
Protected Attributes | |
$search |
Search Database
Definition at line 7 of file SearchEngineTest.php.
Stub.
If a test needs to add additional data to the database, it should implement this method and do so
Reimplemented from MediaWikiTestCase.
Definition at line 39 of file SearchEngineTest.php.
References insertPage(), MediaWikiTestCase\isWikitextNS(), and pageExists().
SearchEngineTest::fetchIds | ( | $ | results | ) |
Definition at line 68 of file SearchEngineTest.php.
References $matches, array(), and MediaWikiTestCase\isWikitextNS().
Referenced by testFullWidth(), testTextPowerSearch(), testTextSearch(), testTextTitlePowerSearch(), and testTitleSearch().
SearchEngineTest::insertPage | ( | $ | pageName, |
$ | text, | ||
$ | ns | ||
) |
Insert a new page.
$pageName | String: page name |
$text | String: page's content |
$n | Integer: unused |
Definition at line 97 of file SearchEngineTest.php.
References $comment, $page, $title, $user, array(), WikiPage\factory(), ContentHandler\makeContent(), User\newFromName(), Title\newFromText(), and LinkCache\singleton().
Referenced by addDBData().
SearchEngineTest::pageExists | ( | $ | title | ) |
Definition at line 35 of file SearchEngineTest.php.
Referenced by addDBData().
SearchEngineTest::setUp | ( | ) | [protected] |
Checks for database type & version.
Will skip current test if DB does not support search.
Reimplemented from MediaWikiTestCase.
Definition at line 14 of file SearchEngineTest.php.
SearchEngineTest::tearDown | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 31 of file SearchEngineTest.php.
Definition at line 114 of file SearchEngineTest.php.
References array(), and fetchIds().
Definition at line 140 of file SearchEngineTest.php.
References array(), and fetchIds().
Definition at line 133 of file SearchEngineTest.php.
References array(), and fetchIds().
Definition at line 161 of file SearchEngineTest.php.
References array(), and fetchIds().
Definition at line 151 of file SearchEngineTest.php.
References array(), and fetchIds().
SearchEngineTest::$pageList |
Definition at line 8 of file SearchEngineTest.php.
SearchEngineTest::$search [protected] |
Definition at line 8 of file SearchEngineTest.php.