From 582f3909bc56908f635026b05a18cf49e9e5a8ad Mon Sep 17 00:00:00 2001 From: sanjuktaghosh7 Date: Fri, 1 Jul 2022 09:36:56 +0530 Subject: [PATCH 1/5] test: added testcase for drive-v3 snippets --- .../tests/DriveCreateTeamDriveTest.php | 26 +++++++++++++++++++ .../tests/DriveFetchAppDataFolderTest.php | 26 +++++++++++++++++++ .../drive_v3/tests/DriveRecoverTeamDrive.php | 25 ++++++++++++++++++ .../drive_v3/tests/DriveUploadAppData.php | 26 +++++++++++++++++++ 4 files changed, 103 insertions(+) create mode 100644 drive/snippets/drive_v3/tests/DriveCreateTeamDriveTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveFetchAppDataFolderTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveRecoverTeamDrive.php create mode 100644 drive/snippets/drive_v3/tests/DriveUploadAppData.php diff --git a/drive/snippets/drive_v3/tests/DriveCreateTeamDriveTest.php b/drive/snippets/drive_v3/tests/DriveCreateTeamDriveTest.php new file mode 100644 index 0000000..5439d23 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveCreateTeamDriveTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveFetchAppDataFolderTest.php b/drive/snippets/drive_v3/tests/DriveFetchAppDataFolderTest.php new file mode 100644 index 0000000..61c862c --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveFetchAppDataFolderTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveRecoverTeamDrive.php b/drive/snippets/drive_v3/tests/DriveRecoverTeamDrive.php new file mode 100644 index 0000000..ea78e9d --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveRecoverTeamDrive.php @@ -0,0 +1,25 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveUploadAppData.php b/drive/snippets/drive_v3/tests/DriveUploadAppData.php new file mode 100644 index 0000000..8421bcf --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveUploadAppData.php @@ -0,0 +1,26 @@ +assertNotNull($id, 'ID not returned.'); + } +} \ No newline at end of file From ceaecf695e739160f3f02d2c6d233e9cb06c02c4 Mon Sep 17 00:00:00 2001 From: sanjuktaghosh7 Date: Fri, 1 Jul 2022 21:12:59 +0530 Subject: [PATCH 2/5] test: added testcase for drive-v3 snippets --- .../drive_v3/tests/DriveCreateDriveTest.php | 26 +++++++++++++++++++ .../drive_v3/tests/DriveCreateFolderTest.php | 26 +++++++++++++++++++ .../tests/DriveCreateShortcutTest.php | 26 +++++++++++++++++++ .../drive_v3/tests/DriveDownloadFileTest.php | 26 +++++++++++++++++++ .../drive_v3/tests/DriveFetchChangesTest.php | 26 +++++++++++++++++++ .../tests/DriveFetchStartPageTokenTest.php | 26 +++++++++++++++++++ 6 files changed, 156 insertions(+) create mode 100644 drive/snippets/drive_v3/tests/DriveCreateDriveTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveCreateFolderTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveCreateShortcutTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveDownloadFileTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveFetchChangesTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveFetchStartPageTokenTest.php diff --git a/drive/snippets/drive_v3/tests/DriveCreateDriveTest.php b/drive/snippets/drive_v3/tests/DriveCreateDriveTest.php new file mode 100644 index 0000000..bec5769 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveCreateDriveTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveCreateFolderTest.php b/drive/snippets/drive_v3/tests/DriveCreateFolderTest.php new file mode 100644 index 0000000..6190efa --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveCreateFolderTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveCreateShortcutTest.php b/drive/snippets/drive_v3/tests/DriveCreateShortcutTest.php new file mode 100644 index 0000000..bc8e77b --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveCreateShortcutTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveDownloadFileTest.php b/drive/snippets/drive_v3/tests/DriveDownloadFileTest.php new file mode 100644 index 0000000..e2f340d --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveDownloadFileTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveFetchChangesTest.php b/drive/snippets/drive_v3/tests/DriveFetchChangesTest.php new file mode 100644 index 0000000..fa21637 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveFetchChangesTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveFetchStartPageTokenTest.php b/drive/snippets/drive_v3/tests/DriveFetchStartPageTokenTest.php new file mode 100644 index 0000000..d12ea47 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveFetchStartPageTokenTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file From 2e83cd8a3c7b17929686749eb84223a83b60e40d Mon Sep 17 00:00:00 2001 From: sanjuktaghosh7 Date: Mon, 4 Jul 2022 21:28:53 +0530 Subject: [PATCH 3/5] test: added testcase for drive-v3 snippets --- .../drive_v3/tests/DriveListAppDataTest.php | 25 +++++++++++++++++++ .../tests/DriveMoveFileToFolderTest.php | 25 +++++++++++++++++++ .../drive_v3/tests/DriveRecoverDrivesTest.php | 25 +++++++++++++++++++ .../drive_v3/tests/DriveSearchFilesTest.php | 25 +++++++++++++++++++ .../drive_v3/tests/DriveShareFileTest.php | 25 +++++++++++++++++++ .../drive_v3/tests/DriveTouchFileTest.php | 25 +++++++++++++++++++ .../drive_v3/tests/DriveUploadToBasicTest.php | 25 +++++++++++++++++++ .../tests/DriveUploadToFolderTest.php | 25 +++++++++++++++++++ .../tests/DriveUploadWithConversionTest.php | 25 +++++++++++++++++++ 9 files changed, 225 insertions(+) create mode 100644 drive/snippets/drive_v3/tests/DriveListAppDataTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveMoveFileToFolderTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveRecoverDrivesTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveSearchFilesTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveShareFileTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveTouchFileTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveUploadToBasicTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveUploadToFolderTest.php create mode 100644 drive/snippets/drive_v3/tests/DriveUploadWithConversionTest.php diff --git a/drive/snippets/drive_v3/tests/DriveListAppDataTest.php b/drive/snippets/drive_v3/tests/DriveListAppDataTest.php new file mode 100644 index 0000000..0a605a0 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveListAppDataTest.php @@ -0,0 +1,25 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveMoveFileToFolderTest.php b/drive/snippets/drive_v3/tests/DriveMoveFileToFolderTest.php new file mode 100644 index 0000000..92a2fc4 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveMoveFileToFolderTest.php @@ -0,0 +1,25 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveRecoverDrivesTest.php b/drive/snippets/drive_v3/tests/DriveRecoverDrivesTest.php new file mode 100644 index 0000000..c36bb67 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveRecoverDrivesTest.php @@ -0,0 +1,25 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveSearchFilesTest.php b/drive/snippets/drive_v3/tests/DriveSearchFilesTest.php new file mode 100644 index 0000000..14f2e95 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveSearchFilesTest.php @@ -0,0 +1,25 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveShareFileTest.php b/drive/snippets/drive_v3/tests/DriveShareFileTest.php new file mode 100644 index 0000000..013c160 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveShareFileTest.php @@ -0,0 +1,25 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveTouchFileTest.php b/drive/snippets/drive_v3/tests/DriveTouchFileTest.php new file mode 100644 index 0000000..8d7f149 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveTouchFileTest.php @@ -0,0 +1,25 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveUploadToBasicTest.php b/drive/snippets/drive_v3/tests/DriveUploadToBasicTest.php new file mode 100644 index 0000000..288f1d1 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveUploadToBasicTest.php @@ -0,0 +1,25 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveUploadToFolderTest.php b/drive/snippets/drive_v3/tests/DriveUploadToFolderTest.php new file mode 100644 index 0000000..58d8975 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveUploadToFolderTest.php @@ -0,0 +1,25 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveUploadWithConversionTest.php b/drive/snippets/drive_v3/tests/DriveUploadWithConversionTest.php new file mode 100644 index 0000000..e9afad4 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveUploadWithConversionTest.php @@ -0,0 +1,25 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file From 240030a8cdcb26a95039877c07d3ace37b7ee56d Mon Sep 17 00:00:00 2001 From: sanjuktaghosh7 Date: Mon, 4 Jul 2022 22:31:39 +0530 Subject: [PATCH 4/5] test: added testcase for drive-v3 snippets --- .../drive_v3/tests/DriveExportPdfTest.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 drive/snippets/drive_v3/tests/DriveExportPdfTest.php diff --git a/drive/snippets/drive_v3/tests/DriveExportPdfTest.php b/drive/snippets/drive_v3/tests/DriveExportPdfTest.php new file mode 100644 index 0000000..4799609 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveExportPdfTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file From ddd0bbd6bcfd945efb4628a0f6ac43f11cc6ba02 Mon Sep 17 00:00:00 2001 From: sanjuktaghosh7 Date: Wed, 6 Jul 2022 09:02:41 +0530 Subject: [PATCH 5/5] test: added testcase for drive-v3 snippets --- .../drive_v3/tests/DriveUploadAppData.php | 26 ------------------- .../drive_v3/tests/DriveUploadAppDataTest.php | 25 ++++++++++++++++++ 2 files changed, 25 insertions(+), 26 deletions(-) delete mode 100644 drive/snippets/drive_v3/tests/DriveUploadAppData.php create mode 100644 drive/snippets/drive_v3/tests/DriveUploadAppDataTest.php diff --git a/drive/snippets/drive_v3/tests/DriveUploadAppData.php b/drive/snippets/drive_v3/tests/DriveUploadAppData.php deleted file mode 100644 index 8421bcf..0000000 --- a/drive/snippets/drive_v3/tests/DriveUploadAppData.php +++ /dev/null @@ -1,26 +0,0 @@ -assertNotNull($id, 'ID not returned.'); - } -} \ No newline at end of file diff --git a/drive/snippets/drive_v3/tests/DriveUploadAppDataTest.php b/drive/snippets/drive_v3/tests/DriveUploadAppDataTest.php new file mode 100644 index 0000000..a8eef40 --- /dev/null +++ b/drive/snippets/drive_v3/tests/DriveUploadAppDataTest.php @@ -0,0 +1,25 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file