You are here

public function FlysystemFactoryTest::testGetFilesystemReturnsMissingFilesystem in Flysystem 8

Same name and namespace in other branches
  1. 3.x tests/src/Unit/FlysystemFactoryTest.php \Drupal\Tests\flysystem\Unit\FlysystemFactoryTest::testGetFilesystemReturnsMissingFilesystem()
  2. 2.0.x tests/src/Unit/FlysystemFactoryTest.php \Drupal\Tests\flysystem\Unit\FlysystemFactoryTest::testGetFilesystemReturnsMissingFilesystem()
  3. 3.0.x tests/src/Unit/FlysystemFactoryTest.php \Drupal\Tests\flysystem\Unit\FlysystemFactoryTest::testGetFilesystemReturnsMissingFilesystem()

@covers ::getFilesystem

File

tests/src/Unit/FlysystemFactoryTest.php, line 95

Class

FlysystemFactoryTest
@coversDefaultClass \Drupal\flysystem\FlysystemFactory @group flysystem

Namespace

Drupal\Tests\flysystem\Unit

Code

public function testGetFilesystemReturnsMissingFilesystem() {
  new Settings([]);
  $factory = $this
    ->getFactory();
  $this
    ->assertInstanceOf(MissingAdapter::class, $factory
    ->getFilesystem('testscheme')
    ->getAdapter());
}