File tree Expand file tree Collapse file tree 4 files changed +1
-32
lines changed
Expand file tree Collapse file tree 4 files changed +1
-32
lines changed Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff line change 1111 */
1212class 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 */
Original file line number Diff line number Diff line change 1111 */
1212class 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 */
Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments