public function LocalTest::testHtaccessNotOverwrittenAndFails in Flysystem 3.x
Same name and namespace in other branches
- 8 tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::testHtaccessNotOverwrittenAndFails()
- 2.0.x tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::testHtaccessNotOverwrittenAndFails()
- 3.0.x tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::testHtaccessNotOverwrittenAndFails()
@covers ::ensure @covers ::writeHtaccess
File
- tests/
src/ Unit/ Flysystem/ LocalTest.php, line 130
Class
- LocalTest
- @coversDefaultClass \Drupal\flysystem\Flysystem\Local @group flysystem
Namespace
Drupal\Tests\flysystem\Unit\FlysystemCode
public function testHtaccessNotOverwrittenAndFails() {
mkdir('foo/bar/.htaccess', 0777, TRUE);
$result = (new Local('foo/bar'))
->ensure(TRUE);
$this
->assertSame(1, count($result));
$this
->assertSame('https://www.drupal.org/SA-CORE-2013-003', $result[0]['context']['@url']);
}