\AggregationUnitTest
Test the functionality of the Searchable extension.
Synopsis
class AggregationUnitTest
extends ElasticsearchTestBase
{
- // members
- public static string $fixture_file = 'elastica/tests/lotsOfPhotos.yml';
- // Inherited members from ElasticsearchTestBase
- public static array $ignoreFixtureFileFor;
- protected array $extraDataObjects;
- // methods
- public void testAllFieldsQuery()
- public void testAllFieldsEmptyQuery()
- public void testAggregationWithEmptyQuery()
- public void testAggregationWithQuery()
- public void testOneAggregateSelected()
- public void testTwoAggregatesSelected()
- public void testThreeAggregatesSelected()
- public void testAggregateShutterSpeed()
- private void checkDrillingDownHasHappened()
- public void testGetAggregations()
- public void testAggregationNonExistentField()
- private void search()
- private void aggregationByName()
- // 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
Methods
private
- aggregationByName() — Change array keyed by number to that of aggregation name.
- checkDrillingDownHasHappened()
- search() — Test searching http://stackoverflow.com/questions/28305250/elasticsearch-customize-score-for-synonyms-stemming.
public
- testAggregateShutterSpeed()
- testAggregationNonExistentField()
- testAggregationWithEmptyQuery()
- testAggregationWithQuery()
- testAllFieldsEmptyQuery()
- testAllFieldsQuery()
- testGetAggregations()
- testOneAggregateSelected()
- testThreeAggregatesSelected()
- testTwoAggregatesSelected()
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()