public function test_setting_custom_queue() { $queue = Mockery::mock(QueueManager::class); $client = new Client(['queue' => ['name' => 'errors']], $queue); $queue->shouldReceive('connection')->once()->with(null)->andReturn($queue); $queue->shouldReceive('push')->once()->with(Job::class, [], 'errors'); $client->send([]); }