Skip to content

Commit

Permalink
New tests complete!
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Crozat committed Sep 26, 2016
1 parent 7623fe0 commit af24872
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/DropboxDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
class DropboxDriverTest extends TestCase
{
/** @test */
public function it_adds_a_new_storage()
public function it_works()
{
$this->assertInstanceOf('Illuminate\Filesystem\FilesystemAdapter', Storage::disk('dropbox'));
$this->assertTrue(Storage::disk('dropbox')->makeDirectory('test'));
$this->assertTrue(Storage::disk('dropbox')->deleteDirectory('test'));
}
}
4 changes: 4 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ abstract class TestCase extends Orchestra\Testbench\TestCase
*/
protected function getEnvironmentSetUp($app)
{
if (file_exists(__DIR__ . '/../.env')) {
(new \Dotenv\Dotenv(__DIR__ . '/..'))->load();
}

$app['config']->set('filesystems.disks.dropbox', [
'driver' => 'dropbox',
'app_secret' => env('DROPBOX_APP_SECRET'),
Expand Down

0 comments on commit af24872

Please sign in to comment.