2017-04-26 12:52:20 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\FullTextSearch\Tests\SolrReindexQueuedTest;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
|
2017-11-29 03:31:17 +01:00
|
|
|
if (!class_exists('Symbiote\QueuedJobs\Services\QueuedJobService')) {
|
2017-04-26 12:52:20 +02:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2017-11-29 03:31:17 +01:00
|
|
|
use Symbiote\QueuedJobs\Services\QueuedJobService;
|
2017-04-26 12:52:20 +02:00
|
|
|
|
|
|
|
class SolrReindexQueuedTest_Service extends QueuedJobService implements TestOnly
|
|
|
|
{
|
|
|
|
private static $dependencies = [
|
|
|
|
'queueHandler' => '%$QueueHandler'
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return QueuedJob
|
|
|
|
*/
|
|
|
|
public function getNextJob()
|
|
|
|
{
|
|
|
|
$job = $this->getNextPendingJob();
|
|
|
|
return $this->initialiseJob($job);
|
|
|
|
}
|
|
|
|
}
|