You are here

public function FlysystemFactoryTest::testGetFilesystemReturnsMissingFilesystem in Flysystem 3.0.x

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

@covers ::getFilesystem

File

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

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());
}