SilverStripe\FullTextSearch\Tests\SolrReindexTest
Synopsis
class SolrReindexTest
extends SapphireTest
{
- // members
- protected boolean $usesDatabase = true;
- protected static array $extra_dataobjects = ;
- protected SolrReindexTest_Index $index = NULL;
- protected SolrService $service = NULL;
- // methods
- protected void setUp()
- protected void createDummyData()
- protected SolrService getServiceMock()
- protected void tearDown()
- protected SolrReindexHandler getHandler()
- public void testVariant()
- public void testReindexSegmentsGroups()
- public void testRunGroup()
- public void testRunAllGroups()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $extra_dataobjects
- $index
—
SilverStripe\FullTextSearch\Tests\SolrReindexTest\SolrReindexTest_Index
Forced index for testing - $service
—
SilverStripe\FullTextSearch\Solr\Services\SolrService
Mock service - $usesDatabase
Methods
protected
- createDummyData() — Populate database with dummy dataset
- getHandler() — Get the reindex handler
- getServiceMock() — Mock service
- setUp()
- tearDown()
public
- testReindexSegmentsGroups() — Given the invocation of a new re-index with a given set of data, ensure that the necessary list of groups are created and segmented for each state
- testRunAllGroups() — Test that running all groups covers the entire range of dataobject IDs
- testRunGroup() — Test index processing on individual groups
- testVariant() — Ensure the test variant is up and running properly