QueuedJobsTableTest
extends TestCase
in package
Queue\Model\Table\QueuedJobsTable Test Case
Table of Contents
Properties
- $fixtures : array<string|int, string>
- $QueuedJobs : QueuedJobsTable
Methods
- _testRequeueAfterTimeout() : void
- Are those tests still valid? //FIXME
- _testRequeueAfterTimeout2() : void
- Tests whether the timeout of second tasks doesn't interfere with requeue of tasks
- setUp() : void
- setUp method
- tearDown() : void
- testCreateAndCount() : void
- Test the basic create and length evaluation functions.
- testCreateAndFetch() : void
- Test the basic create and fetch functions.
- testCreateWithDto() : void
- testCreateWithFqcn() : void
- Tests that FQCN for job task resolves to job name.
- testCreateWithObject() : void
- testCreateWithSkipExistenceCheck() : void
- Tests that string for job task, with "skipExistenceCheck" set to true, results in a successfully created job.
- testFindQueued() : void
- testFlushFailedJobs() : void
- testGetStats() : void
- testIsQueued() : void
- testMarkJobDone() : void
- testMarkJobFailed() : void
- testNotBefore() : null
- Test creating Jobs to run close to a specified time, and strtotime parsing.
- testNotBeforeOrder() : void
- Test Job reordering depending on 'notBefore' field.
- testPriority() : void
- testQueueInstance() : void
- Basic Instance test
- testRateLimit() : void
- Job Rate limiting.
- testRequestGroup() : void
- Testing request grouping.
- testRequestJob() : void
- testSequence() : void
- Test the delivery of jobs in sequence, skipping fetched but not completed tasks.
- _needsConnection() : void
- Helper method for skipping tests that need a real connection.
Properties
$fixtures
protected
array<string|int, string>
$fixtures
= ['plugin.Queue.QueuedJobs']
$QueuedJobs
protected
QueuedJobsTable
$QueuedJobs
Methods
_testRequeueAfterTimeout()
Are those tests still valid? //FIXME
public
_testRequeueAfterTimeout() : void
_testRequeueAfterTimeout2()
Tests whether the timeout of second tasks doesn't interfere with requeue of tasks
public
_testRequeueAfterTimeout2() : void
Are those tests still valid? //FIXME
setUp()
setUp method
public
setUp() : void
tearDown()
public
tearDown() : void
testCreateAndCount()
Test the basic create and length evaluation functions.
public
testCreateAndCount() : void
testCreateAndFetch()
Test the basic create and fetch functions.
public
testCreateAndFetch() : void
testCreateWithDto()
public
testCreateWithDto() : void
testCreateWithFqcn()
Tests that FQCN for job task resolves to job name.
public
testCreateWithFqcn() : void
testCreateWithObject()
public
testCreateWithObject() : void
testCreateWithSkipExistenceCheck()
Tests that string for job task, with "skipExistenceCheck" set to true, results in a successfully created job.
public
testCreateWithSkipExistenceCheck() : void
testFindQueued()
public
testFindQueued() : void
testFlushFailedJobs()
public
testFlushFailedJobs() : void
testGetStats()
public
testGetStats() : void
testIsQueued()
public
testIsQueued() : void
testMarkJobDone()
public
testMarkJobDone() : void
testMarkJobFailed()
public
testMarkJobFailed() : void
testNotBefore()
Test creating Jobs to run close to a specified time, and strtotime parsing.
public
testNotBefore() : null
Using toUnixString() function to convert Time object to timestamp, instead of strtotime
Return values
nulltestNotBeforeOrder()
Test Job reordering depending on 'notBefore' field.
public
testNotBeforeOrder() : void
Jobs with an expired notbefore field should be executed before any other job without specific timing info.
testPriority()
public
testPriority() : void
testQueueInstance()
Basic Instance test
public
testQueueInstance() : void
testRateLimit()
Job Rate limiting.
public
testRateLimit() : void
Do not execute jobs of a certain type more often than once every X seconds.
testRequestGroup()
Testing request grouping.
public
testRequestGroup() : void
testRequestJob()
public
testRequestJob() : void
testSequence()
Test the delivery of jobs in sequence, skipping fetched but not completed tasks.
public
testSequence() : void
_needsConnection()
Helper method for skipping tests that need a real connection.
protected
_needsConnection() : void