MediaWiki  master
SearchEnginePrefixTest Class Reference

Search Database. More...

Inheritance diagram for SearchEnginePrefixTest:
Collaboration diagram for SearchEnginePrefixTest:

Public Member Functions

 addDBDataOnce ()
 
 paginationProvider ()
 
 tearDown ()
 
 testPagination ( $hasMoreResults, $provision)
 paginationProvider SearchSuggestionSet::hasMoreResults More...
 
 testSearch (array $case)
 provideSearch SearchEngine::defaultPrefixSearch More...
 
 testSearchBackend (array $case)
 provideSearchBackend PrefixSearch::searchBackend More...
 
 testSearchWithOffset (array $case)
 provideSearch SearchEngine::defaultPrefixSearch More...
 

Static Public Member Functions

static provideSearch ()
 
static provideSearchBackend ()
 

Protected Member Functions

 searchProvision (array $results=null)
 
 setUp ()
 
- Protected Member Functions inherited from MediaWikiLangTestCase
 setUp ()
 

Private Member Functions

 mockSearchWithResults ( $titleStrings, $limit=3)
 

Private Attributes

 $originalHandlers
 
SearchEngine $search
 

Detailed Description

Search Database.

Definition at line 10 of file SearchEnginePrefixTest.php.

Member Function Documentation

◆ addDBDataOnce()

SearchEnginePrefixTest::addDBDataOnce ( )

Definition at line 18 of file SearchEnginePrefixTest.php.

References NS_MAIN.

◆ mockSearchWithResults()

SearchEnginePrefixTest::mockSearchWithResults (   $titleStrings,
  $limit = 3 
)
private

◆ paginationProvider()

SearchEnginePrefixTest::paginationProvider ( )

Definition at line 368 of file SearchEnginePrefixTest.php.

References $res.

◆ provideSearch()

static SearchEnginePrefixTest::provideSearch ( )
static

Definition at line 96 of file SearchEnginePrefixTest.php.

◆ provideSearchBackend()

static SearchEnginePrefixTest::provideSearchBackend ( )
static

Definition at line 225 of file SearchEnginePrefixTest.php.

◆ searchProvision()

SearchEnginePrefixTest::searchProvision ( array  $results = null)
protected

Definition at line 81 of file SearchEnginePrefixTest.php.

References $namespaces, null, and use.

◆ setUp()

SearchEnginePrefixTest::setUp ( )
protected

Definition at line 53 of file SearchEnginePrefixTest.php.

References class, and NS_MAIN.

◆ tearDown()

SearchEnginePrefixTest::tearDown ( )

Definition at line 75 of file SearchEnginePrefixTest.php.

References $originalHandlers, and class.

◆ testPagination()

SearchEnginePrefixTest::testPagination (   $hasMoreResults,
  $provision 
)

◆ testSearch()

SearchEnginePrefixTest::testSearch ( array  $case)

provideSearch SearchEngine::defaultPrefixSearch

Definition at line 186 of file SearchEnginePrefixTest.php.

References $t, and Title\getPrefixedText().

◆ testSearchBackend()

SearchEnginePrefixTest::testSearchBackend ( array  $case)

◆ testSearchWithOffset()

SearchEnginePrefixTest::testSearchWithOffset ( array  $case)

provideSearch SearchEngine::defaultPrefixSearch

Definition at line 204 of file SearchEnginePrefixTest.php.

References $t, and Title\getPrefixedText().

Member Data Documentation

◆ $originalHandlers

SearchEnginePrefixTest::$originalHandlers
private

Definition at line 11 of file SearchEnginePrefixTest.php.

Referenced by tearDown().

◆ $search

SearchEngine SearchEnginePrefixTest::$search
private

Definition at line 16 of file SearchEnginePrefixTest.php.

Referenced by mockSearchWithResults().


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