A Dropbox Filesystem module for Codeception.
To install simply require the package in the composer.json
file like
composer require --dev polevaultweb/dropbox-filesystem
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
- doesDropboxFileExist
- deleteDropboxFile
And assertions
- seeDropboxFile
$I = new AcceptanceTester( $scenario );
$I->seeDropboxFile( 'path/to/file.jpg' );