/** * Pushes all jobs in the provider to the queue at once * * @return Job[] */ public function pushJobs() { $jobs = $this->jobProvider(); foreach ($jobs as $job) { $job = reset($job); $this->connector->push('test', $job); } return $jobs; }
/** * @covers ::delayed * @group Queue * @group Main */ public function testDelayed() { $this->connector->shouldReceive('delayed')->andReturn(null); $job = \Mockery::mock('Indigo\\Queue\\Job'); $this->assertNull($this->queue->delayed(0, $job)); }
/** * Requests Dilicom * * @param string $api API Dilicom * @param array $options Options to pass to the connector * @return mixed */ protected function request($api, $options = array()) { return $this->connector->get("/v1/hub-numerique-api/{$api}", null, array_merge(array("auth" => array($this->user, $this->password), "verify" => $this->should_verify_ssl, "debug" => $this->enable_debug), $options)); }