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