Skip to content

Commit

Permalink
Update #24, add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dusta committed Dec 17, 2018
1 parent 2d2eb83 commit 38cb978
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
use League\Flysystem\Filesystem;
use PHPUnit\Framework\TestCase;

define('APP_DIR', __DIR__.'/');

/**
* Class FileTests
*
Expand Down Expand Up @@ -37,14 +39,15 @@ public function setUp()
$this->Storage = new Storage($driver, $config);
}

public function testHas(){
public function testHas()
{

$this->assertTrue($this->Storage->getManager()->has('local://file.txt'));
}

public function testPut(){

$put = $this->Storage->put('local', __DIR__.'/file.txt', 'files/file.txt');
public function testPut()
{
$put = $this->Storage->put('local', __DIR__ . '/file.txt', 'files/file.txt');
$this->assertTrue($put['return']);
}

Expand Down

0 comments on commit 38cb978

Please sign in to comment.