FIX Disable QueuedJobService shutdown function in fulltextsearch unit tests

This commit is contained in:
Robbie Averill 2017-11-30 09:52:04 +13:00
parent 6f8ef48a9b
commit c7cbb0190d
2 changed files with 4 additions and 0 deletions

View File

@ -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');

View File

@ -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