polevaultweb/google-drive-filesystem

Google Drive extension of the Codeception Filesystem module.

1.2 2020-07-31 13:55 UTC

This package is auto-updated.

Last update: 2024-10-29 06:18:28 UTC


README

A Google Drive Filesystem module for Codeception.

Installation

To install simply require the package in the composer.json file like

composer require --dev polevaultweb/google-drive-filesystem

GoogleDriveFilesystem configuration

GoogleDriveFilesystem extends Filesystem module hence any parameter required and available to that module is required and available in GoogleDriveFilesystem as well.

In the suite .yml configuration file add the module among the loaded ones with the authorizationToken.

  modules:
      enabled:
          - GoogleDriveFilesystem
      config:
          GoogleDriveFilesystem:
              authorizationToken: xxxxxxxxxxxx

Supports

  • doesDriveFileExist
  • deleteDriveFile

And assertions

  • seeDriveFile

Usage

$I = new AcceptanceTester( $scenario );

$I->seeDriveFile( 'path/to/file.jpg' );