diff --git a/tests/BatchedProcessorTest.php b/tests/BatchedProcessorTest.php index c820987..77cf615 100644 --- a/tests/BatchedProcessorTest.php +++ b/tests/BatchedProcessorTest.php @@ -56,6 +56,8 @@ class BatchedProcessorTest extends SapphireTest $this->markTestSkipped("These tests need the QueuedJobs module installed to run"); } + Config::modify()->set(QueuedJobService::class, 'use_shutdown_function', false); + if (class_exists('Subsite')) { $this->skipTest = true; $this->markTestSkipped(get_class() . ' skipped when running with subsites'); diff --git a/tests/SolrReindexQueuedTest.php b/tests/SolrReindexQueuedTest.php index 2dda3a1..1328692 100644 --- a/tests/SolrReindexQueuedTest.php +++ b/tests/SolrReindexQueuedTest.php @@ -58,6 +58,8 @@ class SolrReindexQueuedTest extends SapphireTest return $this->markTestSkipped("These tests need the QueuedJobs module installed to run"); } + Config::modify()->set(QueuedJobService::class, 'use_shutdown_function', false); + // Set queued handler for reindex Config::modify()->set(Injector::class, SolrReindexHandler::class, array( 'class' => SolrReindexQueuedHandler::class