1 | <?php |
||
15 | class QueuedJobsAdminTest extends FunctionalTest |
||
|
|||
16 | { |
||
17 | /** |
||
18 | * {@inheritDoc} |
||
19 | * @var string |
||
20 | */ |
||
21 | // protected static $fixture_file = 'QueuedJobsAdminTest.yml'; |
||
22 | |||
23 | /** |
||
24 | * @var QueuedJobsAdmin |
||
25 | */ |
||
26 | protected $admin; |
||
27 | |||
28 | /** |
||
29 | * Get a test class, and mock the job queue for it |
||
30 | * |
||
31 | * {@inheritDoc} |
||
32 | */ |
||
33 | public function setUp() |
||
45 | |||
46 | /** |
||
47 | * Ensure that the JobParams field is added as a Textarea |
||
48 | */ |
||
49 | public function testConstructorParamsShouldBeATextarea() |
||
54 | |||
55 | /** |
||
56 | * Ensure that when a multi-line value is entered for JobParams, it is split by new line and each value |
||
57 | * passed to the constructor of the JobType that is created by the reflection in createjob() |
||
58 | * |
||
59 | * @covers ::createjob |
||
60 | */ |
||
61 | public function testCreateJobWithConstructorParams() |
||
76 | } |
||
77 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.