Enable WooCommerceSync worker

[MAILPOET-1732]
This commit is contained in:
Rostislav Wolny
2019-03-26 17:06:58 +01:00
committed by M. Shull
parent 7c2b2e3f60
commit f39853846b
2 changed files with 3 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ class Daemon {
$this->executeBounceWorker(); $this->executeBounceWorker();
$this->executeExportFilesCleanupWorker(); $this->executeExportFilesCleanupWorker();
$this->executeInactiveSubscribersWorker(); $this->executeInactiveSubscribersWorker();
// TODO: execute WooCommerceSync worker $this->executeWooCommerceSyncWorker();
} catch (\Exception $e) { } catch (\Exception $e) {
CronHelper::saveDaemonLastError($e->getMessage()); CronHelper::saveDaemonLastError($e->getMessage());
} }

View File

@@ -29,6 +29,7 @@ class DaemonTest extends \MailPoetTest {
'executeBounceWorker' => null, 'executeBounceWorker' => null,
'executeExportFilesCleanupWorker' => null, 'executeExportFilesCleanupWorker' => null,
'executeInactiveSubscribersWorker' => null, 'executeInactiveSubscribersWorker' => null,
'executeWooCommerceSyncWorker' => null,
), $this); ), $this);
$data = array( $data = array(
'token' => 123 'token' => 123
@@ -49,6 +50,7 @@ class DaemonTest extends \MailPoetTest {
'executeBounceWorker' => Expected::exactly(1), 'executeBounceWorker' => Expected::exactly(1),
'executeExportFilesCleanupWorker' => Expected::exactly(1), 'executeExportFilesCleanupWorker' => Expected::exactly(1),
'executeInactiveSubscribersWorker' => Expected::exactly(1), 'executeInactiveSubscribersWorker' => Expected::exactly(1),
'executeWooCommerceSyncWorker' => Expected::exactly(1),
), $this); ), $this);
$data = array( $data = array(
'token' => 123 'token' => 123