You are here

public function LocalTest::testHtaccessNotOverwrittenAndFails in Flysystem 8

Same name and namespace in other branches
  1. 3.x tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::testHtaccessNotOverwrittenAndFails()
  2. 2.0.x tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::testHtaccessNotOverwrittenAndFails()
  3. 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\Flysystem

Code

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']);
}