18 'class' =>
'JobQueueMemory',
27 [
'customParameter' =>
null ],
29 Title::newFromText(
'Custom title' )
35 $this->assertCount( 0,
$queue->getAllQueuedJobs() );
38 $this->assertCount( 1,
$queue->getAllQueuedJobs() );
43 $this->assertCount( 0,
$queue->getAllAcquiredJobs() );
46 $this->assertCount( 0,
$queue->getAllAcquiredJobs() );
49 $this->assertCount( 1,
$queue->getAllAcquiredJobs() );
55 $this->assertInstanceOf(
'Job',
$job );
56 $this->assertSame(
'null',
$job->getType() );
57 $this->assertArrayHasKey(
'customParameter',
$job->getParams() );
58 $this->assertSame(
'Custom title',
$job->getTitle()->getText() );
wfWikiID()
Get an ASCII string identifying this wiki This is used as a prefix in memcached keys.
testJobFromSpecInternal()
static factory(array $params)
Get a job queue object of the specified type.
Job queue task description base code.
if(count( $args)< 1) $job