silverstripe-fulltextsearch/tests/SolrReindexQueuedTest/SolrReindexQueuedTest_Service.php
2017-11-29 15:40:47 +13:00

28 lines
589 B
PHP

<?php
namespace SilverStripe\FullTextSearch\Tests\SolrReindexQueuedTest;
use SilverStripe\Dev\TestOnly;
if (!class_exists('Symbiote\QueuedJobs\Services\QueuedJobService')) {
return;
}
use Symbiote\QueuedJobs\Services\QueuedJobService;
class SolrReindexQueuedTest_Service extends QueuedJobService implements TestOnly
{
private static $dependencies = [
'queueHandler' => '%$QueueHandler'
];
/**
* @return QueuedJob
*/
public function getNextJob()
{
$job = $this->getNextPendingJob();
return $this->initialiseJob($job);
}
}