mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Modify current queue config for unit testing
This commit is contained in:
parent
50974a325e
commit
eebd9a0005
1 changed files with 6 additions and 0 deletions
|
|
@ -23,6 +23,9 @@ class QueueTest extends \Codeception\Test\Unit
|
|||
|
||||
public function testScheduledTaskAt()
|
||||
{
|
||||
config('queue.enabled', true);
|
||||
config('queue.driver', 'dummy');
|
||||
|
||||
$timestamp = time() + 43200;
|
||||
$handler = 'MyClass::myFunc';
|
||||
$args = (object)['foo' => 'bar'];
|
||||
|
|
@ -45,6 +48,9 @@ class QueueTest extends \Codeception\Test\Unit
|
|||
|
||||
public function testScheduledTaskAtInterval()
|
||||
{
|
||||
config('queue.enabled', true);
|
||||
config('queue.driver', 'db');
|
||||
|
||||
$interval = '30 9 1-15 */2 *';
|
||||
$handler = 'MyClass::getInstance()->myMethod';
|
||||
$args = (object)['foo' => 'bar'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue