\QueryGeneratorTest
Test query generation.
Synopsis
class QueryGeneratorTest
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 testTextOnly()
- private void getDefaultSuggest()
- public void testEmptyTextShowNone()
- public void testEmptyTextShowAll()
- public void testMultiMatchWithText()
- public void testMultiMatchWithNoText()
- public void testEmptyTextShowNoResultsWithAggregations()
- public void testTextShowResultsWithAggregations()
- public void testTextOneFilterAggregate()
- public void testTextTwoFilterAggregate()
- public void testTextThreeFilterAggregate()
- public void testMultiMatchOneFilterAggregate()
- public void testMultiMatchTwoFilterAggregate()
- public void testMultiMatchThreeFilterAggregate()
- public void testConvertWeightedFieldsForElasticaUnaryStrings()
- public void testConvertWeightedFieldsForElasticaMultipleStrings()
- public void testConvertWeightedFieldsForElasticaTestNonString()
- public void testConvertWeightedFieldsForElasticaNonExistent()
- public void testSearchFieldsMappingForClasses()
- public void testSearchFieldsMappingForClassesCaching()
- public void testSearchFieldsMappingForSiteTree()
- public void testPagination()
- private array baseAggs()
- public void testToQuotedCSVFromString()
- public void testToQuotedCSVFromArray()
- public void testToQuotedCSVEmptyString()
- public void testToQuotedCSVEmptyArray()
- public void testToQuotedCSVNull()
- // 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
- baseAggs() — Get the basic aggregates that should be returned for the augmenter being tested.
- getDefaultSuggest()
public
- testConvertWeightedFieldsForElasticaMultipleStrings()
- testConvertWeightedFieldsForElasticaNonExistent()
- testConvertWeightedFieldsForElasticaTestNonString()
- testConvertWeightedFieldsForElasticaUnaryStrings()
- testEmptyTextShowAll()
- testEmptyTextShowNoResultsWithAggregations()
- testEmptyTextShowNone()
- testMultiMatchOneFilterAggregate()
- testMultiMatchThreeFilterAggregate()
- testMultiMatchTwoFilterAggregate()
- testMultiMatchWithNoText()
- testMultiMatchWithText()
- testPagination()
- testSearchFieldsMappingForClasses()
- testSearchFieldsMappingForClassesCaching()
- testSearchFieldsMappingForSiteTree()
- testTextOneFilterAggregate()
- testTextOnly()
- testTextShowResultsWithAggregations()
- testTextThreeFilterAggregate()
- testTextTwoFilterAggregate()
- testToQuotedCSVEmptyArray()
- testToQuotedCSVEmptyString()
- testToQuotedCSVFromArray()
- testToQuotedCSVFromString()
- testToQuotedCSVNull()
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()