polevaultweb/dropbox-filesystem

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Dropbox extension of the Codeception Filesystem module.

1.4 2020-07-31 13:54 UTC

This package is auto-updated.

Last update: 2021-05-29 01:47:58 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' );