You are here

public function LocalTest::testEnsureReturnsErrorWhenCantCreateDir 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::testEnsureReturnsErrorWhenCantCreateDir()
  2. 2.0.x tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::testEnsureReturnsErrorWhenCantCreateDir()
  3. 3.0.x tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::testEnsureReturnsErrorWhenCantCreateDir()

@covers ::ensure @covers ::writeHtaccess

File

tests/src/Unit/Flysystem/LocalTest.php, line 142

Class

LocalTest
@coversDefaultClass \Drupal\flysystem\Flysystem\Local @group flysystem

Namespace

Drupal\Tests\flysystem\Unit\Flysystem

Code

public function testEnsureReturnsErrorWhenCantCreateDir() {
  $result = (new Local('test.txt'))
    ->ensure();
  $this
    ->assertSame('test.txt', $result[0]['context']['%root']);
}