diff --git a/tests/ftp/FtpIntegrationTestCase.php b/tests/ftp/FtpIntegrationTestCase.php index 6149f49ba..53a342c9f 100644 --- a/tests/ftp/FtpIntegrationTestCase.php +++ b/tests/ftp/FtpIntegrationTestCase.php @@ -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 @@ -97,4 +111,4 @@ public function listing_files_of_a_directory() $filesystem->deleteDir('dirname'); $this->assertEquals($expected, $files); } -} \ No newline at end of file +}