MediaWiki  REL1_24
SearchEngineTest Class Reference

Search Database More...

Inheritance diagram for SearchEngineTest:
Collaboration diagram for SearchEngineTest:

List of all members.

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

Detailed Description

Search Database

SearchEngine<extended>

Note:
Coverage will only ever show one of on of the Search* classes

Definition at line 10 of file SearchEngineTest.php.


Member Function Documentation

SearchEngineTest::addPages ( ) [protected]

Definition at line 52 of file SearchEngineTest.php.

References insertPage(), and MediaWikiTestCase\isWikitextNS().

SearchEngineTest::insertPage ( pageName,
text,
ns 
) [protected]

Insert a new page.

Parameters:
string$pageNamePage name
string$textPage's content
int$nsUnused

Definition at line 110 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 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().


Member Data Documentation

SearchEngineTest::$pageList [protected]

Definition at line 16 of file SearchEngineTest.php.

SearchEngine SearchEngineTest::$search [protected]

Definition at line 14 of file SearchEngineTest.php.


The documentation for this class was generated from the following file: