MediaWiki  REL1_22
SearchEngineTest Class Reference

Search Database 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)
 testFullWidth ()
 testTextPowerSearch ()
 testTextSearch ()
 testTextTitlePowerSearch ()
 testTitleSearch ()

Public Attributes

 $pageList

Protected Member Functions

 setUp ()
 Checks for database type & version.
 tearDown ()

Protected Attributes

 $search

Detailed Description

Search Database

Definition at line 7 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 42 of file SearchEngineTest.php.

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

SearchEngineTest::insertPage ( pageName,
text,
ns 
)

Insert a new page.

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

Definition at line 101 of file SearchEngineTest.php.

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

Referenced by addDBData().

Definition at line 38 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 MediaWikiLangTestCase.

Definition at line 14 of file SearchEngineTest.php.

SearchEngineTest::tearDown ( ) [protected]

Reimplemented from MediaWikiTestCase.

Definition at line 32 of file SearchEngineTest.php.

Definition at line 118 of file SearchEngineTest.php.

References array(), and fetchIds().

Definition at line 144 of file SearchEngineTest.php.

References array(), and fetchIds().

Definition at line 137 of file SearchEngineTest.php.

References array(), and fetchIds().

Definition at line 165 of file SearchEngineTest.php.

References array(), and fetchIds().

Definition at line 155 of file SearchEngineTest.php.

References array(), and fetchIds().


Member Data Documentation

SearchEngineTest::$pageList

Definition at line 8 of file SearchEngineTest.php.

SearchEngineTest::$search [protected]

Definition at line 8 of file SearchEngineTest.php.


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