public function __construct(ClientFactory $clientFactory, $clientId, $clientSecret, CacheableInterface $cache = null, $accessToken = null) { $this->guzzleClient = $clientFactory->createClient(); $this->clientId = $clientId; $this->clientSecret = $clientSecret; $this->cache = $cache; $this->accessToken = $accessToken; }
public function testClientHasCorrectDefaults() { $client = $this->clientFactory->createClient(); $this->assertEquals(30, $client->getDefaultOption('timeout')); $this->assertEquals(30, $client->getDefaultOption('connect_timeout')); }