You are here

public function LocalTest::testMissingAdapterReturnedWhenPathIsFile in Flysystem 3.0.x

Same name and namespace in other branches
  1. 8 tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::testMissingAdapterReturnedWhenPathIsFile()
  2. 3.x tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::testMissingAdapterReturnedWhenPathIsFile()
  3. 2.0.x tests/src/Unit/Flysystem/LocalTest.php \Drupal\Tests\flysystem\Unit\Flysystem\LocalTest::testMissingAdapterReturnedWhenPathIsFile()

@covers ::getAdapter @covers ::ensureDirectory

File

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

Class

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

Namespace

Drupal\Tests\flysystem\Unit\Flysystem

Code

public function testMissingAdapterReturnedWhenPathIsFile() {
  $this
    ->assertInstanceOf(MissingAdapter::class, (new Local('test.txt'))
    ->getAdapter());
}