SilverStripe\FullTextSearch\Tests\SolrReindexQueuedTest
Additional tests of solr reindexing processes when run with queuedjobs
Synopsis
class SolrReindexQueuedTest
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 serviceMock()
- protected void tearDown()
- protected SolrReindexHandler getHandler()
- protected SolrReindexQueuedTest_Service getQueuedJobService()
- public void testReindexSegmentsGroups()
- public void testRunGroup()
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
- getQueuedJobService()
- serviceMock() — Mock service
- setUp()
- tearDown()
public
- testReindexSegmentsGroups() — Test that reindex will generate a top top level queued job, and executing this will perform the necessary initialisation of the grouped queued jobs
- testRunGroup() — Test index processing on individual groups