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
26 changes: 26 additions & 0 deletions drive/snippets/drive_v3/tests/DriveCreateDriveTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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/DriveCreateDrive.php';
class DriveCreateDriveTest extends \PHPUnit\Framework\TestCase
{

public function testCreateDrive()
{
$drive = createDrive();
$this->assertNotNull($drive, 'ID not returned.');
}
}
26 changes: 26 additions & 0 deletions drive/snippets/drive_v3/tests/DriveCreateFolderTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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/DriveCreateFolder.php';
class DriveCreateFolderTest extends \PHPUnit\Framework\TestCase
{

public function testCreateFolder()
{
$drive = createFolder();
$this->assertNotNull($drive, 'ID not returned.');
}
}
26 changes: 26 additions & 0 deletions drive/snippets/drive_v3/tests/DriveCreateShortcutTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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/DriveCreateShortcut.php';
class DriveCreateShortcutTest extends \PHPUnit\Framework\TestCase
{

public function testCreateShortcut()
{
$drive = createShortcut();
$this->assertNotNull($drive, 'ID not returned.');
}
}
26 changes: 26 additions & 0 deletions drive/snippets/drive_v3/tests/DriveDownloadFileTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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/DriveDownloadFile.php';
class DriveDownloadFileTest extends \PHPUnit\Framework\TestCase
{

public function testDownloadFile()
{
$drive = downloadFile("0BwwA4oUTeiV1UVNwOHItT0xfa2M");
$this->assertNotNull($drive, 'ID not returned.');
}
}
26 changes: 26 additions & 0 deletions drive/snippets/drive_v3/tests/DriveFetchChangesTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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/DriveFetchChanges.php';
class DriveFetchChangesTest extends \PHPUnit\Framework\TestCase
{

public function testFetchChanges()
{
$drive = fetchChanges("100");
$this->assertNotNull($drive, 'ID not returned.');
}
}
26 changes: 26 additions & 0 deletions drive/snippets/drive_v3/tests/DriveFetchStartPageTokenTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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/DriveFetchStartPageToken.php';
class DriveFetchStartPageTokenTest extends \PHPUnit\Framework\TestCase
{

public function testFetchStartPageToken()
{
$drive = fetchStartPageToken();
$this->assertNotNull($drive, 'ID not returned.');
}
}