Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test for a directory creation case. #1011

Merged
merged 3 commits into from Mar 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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);
}
}
}