Skip to content

Commit a24238e

Browse files
committed
Fix tests.
1 parent bdb719d commit a24238e

File tree

4 files changed

+1
-32
lines changed

4 files changed

+1
-32
lines changed

src/Shell/QueueShell.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -469,24 +469,6 @@ protected function _exit($signal) {
469469
$this->_exit = true;
470470
}
471471

472-
/**
473-
* Destructor, removes pid-file
474-
*/
475-
public function __destruct() {
476-
$pidFilePath = Configure::read('Queue.pidfilepath');
477-
478-
$pid = $this->_retrievePid();
479-
if (!$pidFilePath) {
480-
$this->QueueProcesses->remove($pid);
481-
return;
482-
}
483-
484-
$file = $pidFilePath . 'queue_' . $pid . '.pid';
485-
if (file_exists($file)) {
486-
unlink($file);
487-
}
488-
}
489-
490472
/**
491473
* @return void
492474
*/

tests/TestCase/Mailer/Transport/QueueTransportTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111
*/
1212
class QueueTransportTest extends TestCase {
1313

14-
/**
15-
* @var array
16-
*/
17-
public $fixtures = [
18-
'plugin.Queue.QueuedJobs',
19-
];
20-
2114
/**
2215
* @var \Queue\Mailer\Transport\QueueTransport
2316
*/

tests/TestCase/Mailer/Transport/SimpleQueueTransportTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111
*/
1212
class SimpleQueueTransportTest extends TestCase {
1313

14-
/**
15-
* @var array
16-
*/
17-
public $fixtures = [
18-
'plugin.Queue.QueuedJobs',
19-
];
20-
2114
/**
2215
* @var \Queue\Mailer\Transport\SimpleQueueTransport
2316
*/

tests/TestCase/Shell/QueueShellTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class QueueShellTest extends TestCase {
3232
*/
3333
public $fixtures = [
3434
'plugin.Queue.QueuedJobs',
35+
'plugin.Queue.QueueProcesses',
3536
];
3637

3738
/**

0 commit comments

Comments
 (0)