MediaWiki  REL1_23
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:
$pageNameString: page name
$textString: page's content
$nInteger: 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().


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: