Drupal 8  8.0.2
SearchMatchTest Class Reference
Inheritance diagram for SearchMatchTest:

Public Member Functions

 testMatching ()
 
 _setup ()
 
 getText ($n)
 
 getText2 ($n)
 
 _testQueries ()
 
 _testQueryMatching ($query, $set, $results)
 
 _testQueryScores ($query, $set, $results)
 

Static Public Attributes

static $modules = ['search']
 

Protected Member Functions

 setUp ()
 

Detailed Description

Indexes content and queries it.

search

Member Function Documentation

_setup ( )

Set up a small index of items to test against.

References Drupal\config(), SearchMatchTest\getText(), SearchMatchTest\getText2(), and LanguageInterface\LANGCODE_NOT_SPECIFIED.

Referenced by SearchMatchTest\testMatching().

Here is the call graph for this function:

Here is the caller graph for this function:

_testQueries ( )

Run predefine queries looking for indexed terms.

References SearchMatchTest\_testQueryMatching(), SearchMatchTest\_testQueryScores(), and db_select().

Referenced by SearchMatchTest\testMatching().

Here is the call graph for this function:

Here is the caller graph for this function:

_testQueryMatching (   $query,
  $set,
  $results 
)

Test the matching abilities of the engine.

Verify if a query produces the correct results.

Referenced by SearchMatchTest\_testQueries().

Here is the caller graph for this function:

_testQueryScores (   $query,
  $set,
  $results 
)

Test the scoring abilities of the engine.

Verify if a query produces normalized, monotonous scores.

Referenced by SearchMatchTest\_testQueries().

Here is the caller graph for this function:

getText (   $n)

test: Helper method for generating snippets of content.

Generated items to test against: 1 ipsum 2 dolore sit 3 sit am ut 4 am ut enim am 5 ut enim am minim veniam 6 enim am minim veniam es cillum 7 am minim veniam es cillum dolore eu

Referenced by SearchMatchTest\_setup().

Here is the caller graph for this function:

getText2 (   $n)

test2: Helper method for generating snippets of content.

Generated items to test against: 8 dear 9 king philip 10 philip came over 11 came over from germany 12 over from germany swimming

Referenced by SearchMatchTest\_setup().

Here is the caller graph for this function:

setUp ( )
protected

{}

testMatching ( )

Test search indexing.

References SearchMatchTest\_setup(), and SearchMatchTest\_testQueries().

Here is the call graph for this function:


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