public function testDeleteFile()
 {
     $file = $this->createTestFile();
     $resFile = $this->restApi->insertFile($file);
     $response = $this->restApi->getFile($resFile['id']);
     $file->setGoogleId($response['id']);
     $response = $this->restApi->deleteFile($file);
     $this->assertEquals(204, $response->getStatusCode());
 }
Exemplo n.º 2
0
 public function getFile($fileGoogleId)
 {
     return $this->googleDriveApi->getFile($fileGoogleId);
 }