From 22def45c553599648ff3df4b3a4d11c08c498214 Mon Sep 17 00:00:00 2001 From: sanjuktaghosh7 Date: Wed, 29 Jun 2022 22:26:59 +0530 Subject: [PATCH] test: added testcase for drive-v2 snippets --- .../drive-v2/tests/DriveCreateFolderTest.php | 26 +++++++++++++++++++ .../tests/DriveCreateShortCutTest.php | 26 +++++++++++++++++++ .../drive-v2/tests/DriveDownloadFileTest.php | 26 +++++++++++++++++++ .../drive-v2/tests/DriveExportPdfTest.php | 26 +++++++++++++++++++ .../tests/DriveFetchAppdataFolderTest.php | 26 +++++++++++++++++++ .../drive-v2/tests/DriveFetchChangesTest.php | 26 +++++++++++++++++++ .../tests/DriveFetchStartPageTokenTest.php | 26 +++++++++++++++++++ .../drive-v2/tests/DriveListAppdataTest.php | 26 +++++++++++++++++++ .../tests/DriveMoveFileToFolderTest.php | 26 +++++++++++++++++++ .../drive-v2/tests/DriveSearchFilesTest.php | 26 +++++++++++++++++++ .../drive-v2/tests/DriveShareFileTest.php | 26 +++++++++++++++++++ .../drive-v2/tests/DriveTouchFileTest.php | 26 +++++++++++++++++++ .../drive-v2/tests/DriveUploadAppdataTest.php | 26 +++++++++++++++++++ .../drive-v2/tests/DriveUploadBasicTest.php | 26 +++++++++++++++++++ .../tests/DriveUploadToFolderTest.php | 26 +++++++++++++++++++ .../tests/DriveUploadWithConversionTest.php | 26 +++++++++++++++++++ 16 files changed, 416 insertions(+) create mode 100644 drive/snippets/drive-v2/tests/DriveCreateFolderTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveCreateShortCutTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveDownloadFileTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveExportPdfTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveFetchAppdataFolderTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveFetchChangesTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveFetchStartPageTokenTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveListAppdataTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveMoveFileToFolderTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveSearchFilesTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveShareFileTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveTouchFileTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveUploadAppdataTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveUploadBasicTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveUploadToFolderTest.php create mode 100644 drive/snippets/drive-v2/tests/DriveUploadWithConversionTest.php diff --git a/drive/snippets/drive-v2/tests/DriveCreateFolderTest.php b/drive/snippets/drive-v2/tests/DriveCreateFolderTest.php new file mode 100644 index 0000000..6190efa --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveCreateFolderTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveCreateShortCutTest.php b/drive/snippets/drive-v2/tests/DriveCreateShortCutTest.php new file mode 100644 index 0000000..d89b8c8 --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveCreateShortCutTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveDownloadFileTest.php b/drive/snippets/drive-v2/tests/DriveDownloadFileTest.php new file mode 100644 index 0000000..a23dfee --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveDownloadFileTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveExportPdfTest.php b/drive/snippets/drive-v2/tests/DriveExportPdfTest.php new file mode 100644 index 0000000..ef746a3 --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveExportPdfTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'Content not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveFetchAppdataFolderTest.php b/drive/snippets/drive-v2/tests/DriveFetchAppdataFolderTest.php new file mode 100644 index 0000000..3a7e6f3 --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveFetchAppdataFolderTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveFetchChangesTest.php b/drive/snippets/drive-v2/tests/DriveFetchChangesTest.php new file mode 100644 index 0000000..fa21637 --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveFetchChangesTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveFetchStartPageTokenTest.php b/drive/snippets/drive-v2/tests/DriveFetchStartPageTokenTest.php new file mode 100644 index 0000000..680d0bd --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveFetchStartPageTokenTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveListAppdataTest.php b/drive/snippets/drive-v2/tests/DriveListAppdataTest.php new file mode 100644 index 0000000..76ef08c --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveListAppdataTest.php @@ -0,0 +1,26 @@ +assertNotEquals(0, count($drive)); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveMoveFileToFolderTest.php b/drive/snippets/drive-v2/tests/DriveMoveFileToFolderTest.php new file mode 100644 index 0000000..8123636 --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveMoveFileToFolderTest.php @@ -0,0 +1,26 @@ +assertNotEquals(0, count($drive)); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveSearchFilesTest.php b/drive/snippets/drive-v2/tests/DriveSearchFilesTest.php new file mode 100644 index 0000000..a06baee --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveSearchFilesTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveShareFileTest.php b/drive/snippets/drive-v2/tests/DriveShareFileTest.php new file mode 100644 index 0000000..247ad72 --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveShareFileTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveTouchFileTest.php b/drive/snippets/drive-v2/tests/DriveTouchFileTest.php new file mode 100644 index 0000000..d03102e --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveTouchFileTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveUploadAppdataTest.php b/drive/snippets/drive-v2/tests/DriveUploadAppdataTest.php new file mode 100644 index 0000000..7d4d787 --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveUploadAppdataTest.php @@ -0,0 +1,26 @@ +assertNotNull($id, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveUploadBasicTest.php b/drive/snippets/drive-v2/tests/DriveUploadBasicTest.php new file mode 100644 index 0000000..73c9740 --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveUploadBasicTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveUploadToFolderTest.php b/drive/snippets/drive-v2/tests/DriveUploadToFolderTest.php new file mode 100644 index 0000000..dd476dc --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveUploadToFolderTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file diff --git a/drive/snippets/drive-v2/tests/DriveUploadWithConversionTest.php b/drive/snippets/drive-v2/tests/DriveUploadWithConversionTest.php new file mode 100644 index 0000000..755aae4 --- /dev/null +++ b/drive/snippets/drive-v2/tests/DriveUploadWithConversionTest.php @@ -0,0 +1,26 @@ +assertNotNull($drive, 'ID not returned.'); + } +} \ No newline at end of file