MediaWiki  REL1_19
SearchEngineTest Class Reference

This class is not directly tested. More...

Inheritance diagram for SearchEngineTest:
Collaboration diagram for SearchEngineTest:

List of all members.

Public Member Functions

 addDBData ()
 Stub.
 fetchIds ($results)
 insertPage ($pageName, $text, $ns)
 Insert a new page.
 pageExists ($title)
 setUp ()
 Checks for database type & version.
 tearDown ()
 testFullWidth ()
 testTextPowerSearch ()
 testTextSearch ()
 testTextTitlePowerSearch ()
 testTitleSearch ()

Public Attributes

 $pageList

Protected Attributes

 $search

Detailed Description

This class is not directly tested.

Instead it is extended by SearchDbTest. Search Database

Definition at line 8 of file SearchEngineTest.php.


Member Function Documentation

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 40 of file SearchEngineTest.php.

References insertPage(), and pageExists().

Here is the call graph for this function:

Definition at line 63 of file SearchEngineTest.php.

References $matches.

Referenced by testFullWidth(), testTextPowerSearch(), testTextSearch(), testTextTitlePowerSearch(), and testTitleSearch().

Here is the caller graph for this function:

SearchEngineTest::insertPage ( pageName,
text,
ns 
)

Insert a new page.

Parameters:
$pageNameString: page name
$textString: page's content
$nInteger: unused

Definition at line 87 of file SearchEngineTest.php.

References $comment, $page, $title, $user, WikiPage\factory(), User\newFromName(), Title\newFromText(), and LinkCache\singleton().

Referenced by addDBData().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 36 of file SearchEngineTest.php.

Referenced by addDBData().

Here is the caller graph for this function:

Checks for database type & version.

Will skip current test if DB does not support search.

Definition at line 19 of file SearchEngineTest.php.

Definition at line 11 of file SearchEngineTest.php.

Definition at line 104 of file SearchEngineTest.php.

References fetchIds().

Here is the call graph for this function:

Definition at line 130 of file SearchEngineTest.php.

References fetchIds().

Here is the call graph for this function:

Definition at line 123 of file SearchEngineTest.php.

References fetchIds().

Here is the call graph for this function:

Definition at line 151 of file SearchEngineTest.php.

References fetchIds().

Here is the call graph for this function:

Definition at line 141 of file SearchEngineTest.php.

References fetchIds().

Here is the call graph for this function:


Member Data Documentation

SearchEngineTest::$pageList

Definition at line 9 of file SearchEngineTest.php.

SearchEngineTest::$search [protected]

Definition at line 9 of file SearchEngineTest.php.


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