Esempio n. 1
0
 public function testComputeEngineCredentials()
 {
     $client = new \PulkitJalan\Google\Client([]);
     $this->assertInstanceOf('Google_Auth_ComputeEngine', $client->getAuth());
 }
 public function testDefaultCredentials()
 {
     $client = new \PulkitJalan\Google\Client(['service' => ['enable' => true, 'file' => __DIR__ . '/data/test.json']]);
     $this->assertTrue($client->isUsingApplicationDefaultCredentials());
 }