polevaultweb/dropbox-filesystem

Dropbox extension of the Codeception Filesystem module.

1.4 2020-07-31 13:54 UTC

This package is auto-updated.

Last update: 2024-03-29 04:05:34 UTC


README

A Dropbox Filesystem module for Codeception.

Installation

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

composer require --dev polevaultweb/dropbox-filesystem

DropboxFilesystem configuration

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

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

The first thing you need to do is get an authorization token at Dropbox. Unlike other companies Dropbox has made this very easy. You can just generate a token in the App Console for any Dropbox API app. You'll find more info at the Dropbox Developer Blog.

  modules:
      enabled:
          - DropboxFilesystem
      config:
          DropboxFilesystem:
              authorizationToken: xxxxxxxxxxxx

Supports

  • doesDropboxFileExist
  • deleteDropboxFile

And assertions

  • seeDropboxFile

Usage

$I = new AcceptanceTester( $scenario );

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