public function LocalTest::testDirectoryIsAutoCreatedAndHtaccessIsWritten in Flysystem 3.0.x
Same name and namespace in other branches
- 8 tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::testDirectoryIsAutoCreatedAndHtaccessIsWritten()
- 3.x tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::testDirectoryIsAutoCreatedAndHtaccessIsWritten()
- 2.0.x tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::testDirectoryIsAutoCreatedAndHtaccessIsWritten()
@covers ::ensure @covers ::ensureDirectory
File
- tests/
src/ Unit/ Flysystem/ LocalTest.php, line 105
Class
- LocalTest
- @coversDefaultClass \Drupal\flysystem\Flysystem\Local @group flysystem
Namespace
Drupal\Tests\flysystem\Unit\FlysystemCode
public function testDirectoryIsAutoCreatedAndHtaccessIsWritten() {
$plugin = new Local('does_not_exist');
$this
->assertTrue(is_dir('does_not_exist'));
$this
->assertTrue(is_file('does_not_exist/.htaccess'));
}