public function FlysystemFactoryTest::testGetFilesystemReturnsValidFilesystem in Flysystem 8
Same name and namespace in other branches
- 3.x tests/src/Unit/FlysystemFactoryTest.php \Drupal\Tests\flysystem\Unit\FlysystemFactoryTest::testGetFilesystemReturnsValidFilesystem()
- 2.0.x tests/src/Unit/FlysystemFactoryTest.php \Drupal\Tests\flysystem\Unit\FlysystemFactoryTest::testGetFilesystemReturnsValidFilesystem()
- 3.0.x tests/src/Unit/FlysystemFactoryTest.php \Drupal\Tests\flysystem\Unit\FlysystemFactoryTest::testGetFilesystemReturnsValidFilesystem()
@covers ::getFilesystem @covers ::__construct @covers ::getAdapter @covers ::getSettings @covers ::getPlugin
File
- tests/
src/ Unit/ FlysystemFactoryTest.php, line 79
Class
- FlysystemFactoryTest
- @coversDefaultClass \Drupal\flysystem\FlysystemFactory @group flysystem
Namespace
Drupal\Tests\flysystem\UnitCode
public function testGetFilesystemReturnsValidFilesystem() {
new Settings([
'flysystem' => [
'testscheme' => [
'driver' => 'testdriver',
],
],
]);
$factory = $this
->getFactory();
$this
->assertInstanceOf(FilesystemInterface::class, $factory
->getFilesystem('testscheme'));
$this
->assertInstanceOf(NullAdapter::class, $factory
->getFilesystem('testscheme')
->getAdapter());
}