mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +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()
|
public function testScheduledTaskAt()
|
||||||
{
|
{
|
||||||
|
config('queue.enabled', true);
|
||||||
|
config('queue.driver', 'dummy');
|
||||||
|
|
||||||
$timestamp = time() + 43200;
|
$timestamp = time() + 43200;
|
||||||
$handler = 'MyClass::myFunc';
|
$handler = 'MyClass::myFunc';
|
||||||
$args = (object)['foo' => 'bar'];
|
$args = (object)['foo' => 'bar'];
|
||||||
|
|
@ -45,6 +48,9 @@ class QueueTest extends \Codeception\Test\Unit
|
||||||
|
|
||||||
public function testScheduledTaskAtInterval()
|
public function testScheduledTaskAtInterval()
|
||||||
{
|
{
|
||||||
|
config('queue.enabled', true);
|
||||||
|
config('queue.driver', 'db');
|
||||||
|
|
||||||
$interval = '30 9 1-15 */2 *';
|
$interval = '30 9 1-15 */2 *';
|
||||||
$handler = 'MyClass::getInstance()->myMethod';
|
$handler = 'MyClass::getInstance()->myMethod';
|
||||||
$args = (object)['foo' => 'bar'];
|
$args = (object)['foo' => 'bar'];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue