Skip to content

Commit 4837cdb

Browse files
committed
Fix tests
1 parent 10f508a commit 4837cdb

File tree

9 files changed

+15
-6
lines changed

9 files changed

+15
-6
lines changed

tests/TestCase/Command/AddCommandTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function setUp(): void {
2727
parent::setUp();
2828

2929
//$this->useCommandRunner();
30+
$this->loadPlugins(['Queue']);
3031
}
3132

3233
/**

tests/TestCase/Command/BakeQueueTaskCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class BakeQueueTaskCommandTest extends TestCase {
3030
*/
3131
public function setUp(): void {
3232
parent::setUp();
33-
//$this->useCommandRunner();
33+
34+
$this->loadPlugins(['Queue']);
3435

3536
$this->removeFiles();
3637
}

tests/TestCase/Command/InfoCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class InfoCommandTest extends TestCase {
2626
*/
2727
public function setUp(): void {
2828
parent::setUp();
29-
//$this->useCommandRunner();
29+
30+
$this->loadPlugins(['Queue']);
3031
}
3132

3233
/**

tests/TestCase/Command/JobCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class JobCommandTest extends TestCase {
2929
public function setUp(): void {
3030
parent::setUp();
3131

32-
//$this->useCommandRunner();
32+
$this->loadPlugins(['Queue']);
3333

3434
Configure::write('Queue.cleanuptimeout', 10);
3535
}

tests/TestCase/Command/RunCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ class RunCommandTest extends TestCase {
2929
public function setUp(): void {
3030
parent::setUp();
3131

32+
$this->loadPlugins(['Queue']);
33+
3234
Configure::write('Queue', [
3335
'sleeptime' => 1,
3436
'defaultworkertimeout' => 3,
3537
'workermaxruntime' => 3,
3638
'cleanuptimeout' => 10,
3739
'exitwhennothingtodo' => false,
3840
]);
39-
40-
//$this->useCommandRunner();
4141
}
4242

4343
/**

tests/TestCase/Command/WorkerCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class WorkerCommandTest extends TestCase {
2626
public function setUp(): void {
2727
parent::setUp();
2828

29-
//$this->useCommandRunner();
29+
$this->loadPlugins(['Queue']);
3030
}
3131

3232
/**

tests/TestCase/Controller/Admin/QueueControllerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class QueueControllerTest extends TestCase {
3434
public function setUp(): void {
3535
parent::setUp();
3636

37+
$this->loadPlugins(['Queue']);
38+
3739
$this->disableErrorHandlerMiddleware();
3840
}
3941

tests/TestCase/Controller/Admin/QueueProcessesControllerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class QueueProcessesControllerTest extends TestCase {
2929
public function setUp(): void {
3030
parent::setUp();
3131

32+
$this->loadPlugins(['Queue']);
33+
3234
$this->disableErrorHandlerMiddleware();
3335
}
3436

tests/TestCase/Controller/Admin/QueuedJobsControllerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class QueuedJobsControllerTest extends TestCase {
2222
public function setUp(): void {
2323
parent::setUp();
2424

25+
$this->loadPlugins(['Queue']);
26+
2527
$this->disableErrorHandlerMiddleware();
2628
}
2729

0 commit comments

Comments
 (0)