Extract simple workers common code into a base class [PREMIUM-4]

This commit is contained in:
Alexey Stoletniy
2017-05-08 07:38:56 +03:00
parent 4b1f216cd3
commit 3f151fd235
18 changed files with 416 additions and 649 deletions

View File

@@ -0,0 +1,12 @@
<?php
namespace MailPoet\Cron\Workers\KeyCheck;
if(!defined('ABSPATH')) exit;
class MockKeyCheckWorker extends KeyCheckWorker {
const TASK_TYPE = 'mock_key_check_worker';
function checkKey() {
return array('code' => 12345); // bogus code
}
}