Skip to content

Commit

Permalink
Merge pull request #1011 from thephpleague/feature/test-issue-1006
Browse files Browse the repository at this point in the history
Added test for a directory creation case.
  • Loading branch information
frankdejonge committed Mar 18, 2019
2 parents 9686048 + ca7c055 commit b8cee3b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/ftp/FtpIntegrationTestCase.php
Expand Up @@ -63,6 +63,20 @@ public function writing_reading_deleting()
$this->assertTrue($filesystem->delete('path.txt'));
}



/**
* @test
* @depends testInstantiable
*/
public function creating_a_directory()
{
$this->filesystem->createDir('dirname/directory');
$metadata = $this->filesystem->getMetadata('dirname/directory');
self::assertEquals('dir', $metadata['type']);
$this->filesystem->deleteDir('dirname');
}

/**
* @test
* @depends testInstantiable
Expand Down Expand Up @@ -97,4 +111,4 @@ public function listing_files_of_a_directory()
$filesystem->deleteDir('dirname');
$this->assertEquals($expected, $files);
}
}
}

0 comments on commit b8cee3b

Please sign in to comment.