KMP PHP API Reference

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']

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

testCreateAndCount()

Test the basic create and length evaluation functions.

public testCreateAndCount() : void

testCreateAndFetch()

Test the basic create and fetch functions.

public testCreateAndFetch() : void

testCreateWithFqcn()

Tests that FQCN for job task resolves to job name.

public testCreateWithFqcn() : void

testCreateWithSkipExistenceCheck()

Tests that string for job task, with "skipExistenceCheck" set to true, results in a successfully created job.

public testCreateWithSkipExistenceCheck() : 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
null

testNotBeforeOrder()

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.

testRateLimit()

Job Rate limiting.

public testRateLimit() : void

Do not execute jobs of a certain type more often than once every X seconds.

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

        
On this page

Search results