Symbiote\QueuedJobs\Tests\QueuedJobsAdminTest
Tests for the QueuedJobsAdmin ModelAdmin clas
- Author: Robbie Averill <robbie@silverstripe.com>
Synopsis
class QueuedJobsAdminTest
extends FunctionalTest
{
- // members
- protected boolean $usesDatabase = true;
- protected QueuedJobsAdmin $admin;
- // methods
- protected void setUp()
- public void testConstructorParamsShouldBeATextarea()
- public void testCreateJobWithConstructorParams()
- public void testCreateJobWithStartAfterOption()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Members
protected
- $admin — Symbiote\QueuedJobs\Controllers\QueuedJobsAdmin
- $usesDatabase
Methods
protected
- setUp() — Get a test class, and mock the job queue for it
public
- testConstructorParamsShouldBeATextarea() — Ensure that the JobParams field is added as a Textarea
- testCreateJobWithConstructorParams() — Ensure that when a multi-line value is entered for JobParams, it is split by new line and each value passed to the constructor of the JobType that is created by the reflection in createjob()
- testCreateJobWithStartAfterOption()