\ElasticaSearcherUnitTest
Synopsis
class ElasticaSearcherUnitTest
extends ElasticsearchTestBase
{
- // members
- public static string $fixture_file = 'elastica/tests/lotsOfPhotos.yml';
- public static array $ignoreFixtureFileFor = ;
- // Inherited members from ElasticsearchTestBase
- public static array $ignoreFixtureFileFor;
- protected array $extraDataObjects;
- // methods
- public void setUp()
- public void tearDown()
- public void testSuggested()
- public void testResultsForEmptySearch()
- public void testMoreLikeThisSinglePhoto()
- public void testSimilarNoWeighting()
- public void testSimilarWeightingNotNumeric()
- public void testSimilarToNonSearchable()
- public void testSimilarGood()
- public void testSimilarNullFields()
- public void testSimilarNullItem()
- public void testHighlightsAsIfCMSEdited()
- public void testHighlightPassingFields()
- public void testAutoCompleteGood()
- private void makeCode()
- // Inherited methods from ElasticsearchTestBase
- public void setUpOnce()
- public void setUp()
- protected void devBuild()
- public void generateAssertionsFromArray()
- public void generateAssertionsFromArray1D()
- public void generateAssertionsFromArrayRecurse()
- public void checkTabExists()
- public void checkFieldExists()
- public mixed invokeMethod()
- public void checkNumberOfIndexedDocuments()
- public void getNumberOfIndexedDocuments()
Hierarchy
Extends
Members
protected
- $extraDataObjects
public
- $fixture_file
- $ignoreFixtureFileFor
- $ignoreFixtureFileFor
Methods
private
public
- setUp()
- tearDown()
- testAutoCompleteGood()
- testHighlightPassingFields()
- testHighlightsAsIfCMSEdited()
- testMoreLikeThisSinglePhoto()
- testResultsForEmptySearch()
- testSimilarGood()
- testSimilarNoWeighting()
- testSimilarNullFields() — }
- testSimilarNullItem()
- testSimilarToNonSearchable()
- testSimilarWeightingNotNumeric()
- testSuggested()
Inherited from ElasticsearchTestBase
protected
public
- checkFieldExists()
- checkNumberOfIndexedDocuments()
- checkTabExists()
- generateAssertionsFromArray()
- generateAssertionsFromArray1D()
- generateAssertionsFromArrayRecurse()
- getNumberOfIndexedDocuments()
- invokeMethod() — From https://jtreminio.com/2013/03/unit-testing-tutorial-part-3-testing-protected-private-methods-coverage-reports-and-crap/ Call protected/private method of a class.
- setUp()
- setUpOnce()