public function testPurge() { Queue::write('default', 'message'); Queue::write('default', 'message'); $result = Queue::purge('default'); $this->assertTrue($result); }
/** * Performs a task * * @see li3_queue\Queue::run() * @param string $config The configuration to use * @return mixed The return value of the task */ public function run($config = 'default') { return \li3_queue\storage\Queue::run(compact('config')); }