Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions drive/snippets/drive_v3/tests/DriveListAppDataTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/DriveListAppData.php';
class DriveListAppDataTest extends \PHPUnit\Framework\TestCase
{
public function testListAppData()
{
$drive = listAppData();
$this->assertNotNull($drive, 'ID not returned.');
}
}
25 changes: 25 additions & 0 deletions drive/snippets/drive_v3/tests/DriveMoveFileToFolderTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/DriveMoveFileToFolder.php';
class DriveMoveFileToFolderTest extends \PHPUnit\Framework\TestCase
{
public function testMoveFileToFolder()
{
$drive = moveFileToFolder('1sTWaJ_j7PkjzaBWtNc3IzovK5hQf21FbOw9yLeeLPNQ', '0BwwA4oUTeiV1TGRPeTVjaWRDY1E');
$this->assertNotNull($drive, 'ID not returned.');
}
}
25 changes: 25 additions & 0 deletions drive/snippets/drive_v3/tests/DriveRecoverDrivesTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/DriveRecoverDrives.php';
class DriveRecoverDrivesTest extends \PHPUnit\Framework\TestCase
{
public function testRecoverDrives()
{
$drive = recoverDrives('user@example.com');
$this->assertNotNull($drive, 'ID not returned.');
}
}
25 changes: 25 additions & 0 deletions drive/snippets/drive_v3/tests/DriveSearchFilesTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/DriveSearchFiles.php';
class DriveSearchFilesTest extends \PHPUnit\Framework\TestCase
{
public function testSearchFiles()
{
$drive = searchFiles();
$this->assertNotNull($drive, 'ID not returned.');
}
}
25 changes: 25 additions & 0 deletions drive/snippets/drive_v3/tests/DriveShareFileTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/DriveShareFile.php';
class DriveShareFileTest extends \PHPUnit\Framework\TestCase
{
public function testShareFile()
{
$drive = shareFile('1sTWaJ_j7PkjzaBWtNc3IzovK5hQf21FbOw9yLeeLPNQ');
$this->assertNotNull($drive, 'ID not returned.');
}
}
25 changes: 25 additions & 0 deletions drive/snippets/drive_v3/tests/DriveTouchFileTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/DriveTouchFile.php';
class DriveTouchFileTest extends \PHPUnit\Framework\TestCase
{
public function testTouchFile()
{
$drive = touchFile('1sTWaJ_j7PkjzaBWtNc3IzovK5hQf21FbOw9yLeeLPNQ',"12-08-2022");
$this->assertNotNull($drive, 'ID not returned.');
}
}
25 changes: 25 additions & 0 deletions drive/snippets/drive_v3/tests/DriveUploadToBasicTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/DriveUploadBasic.php';
class DriveUploadToBasicTest extends \PHPUnit\Framework\TestCase
{
public function testUploadBasic()
{
$drive = uploadBasic();
$this->assertNotNull($drive, 'ID not returned.');
}
}
25 changes: 25 additions & 0 deletions drive/snippets/drive_v3/tests/DriveUploadToFolderTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/DriveUploadToFolder.php';
class DriveUploadToFolderTest extends \PHPUnit\Framework\TestCase
{
public function testUploadToFolder()
{
$drive = uploadToFolder();
$this->assertNotNull($drive, 'ID not returned.');
}
}
25 changes: 25 additions & 0 deletions drive/snippets/drive_v3/tests/DriveUploadWithConversionTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/DriveUploadWithConversion.php';
class DriveUploadWithConversionTest extends \PHPUnit\Framework\TestCase
{
public function testUploadWithConversion()
{
$drive = uploadWithConversion();
$this->assertNotNull($drive, 'ID not returned.');
}
}