public function FlysystemServiceProviderTest::testValidSchemeConfiguration in Flysystem 3.0.x
Same name and namespace in other branches
- 8 tests/src/Unit/FlysystemServiceProviderTest.php \Drupal\Tests\flysystem\Unit\FlysystemServiceProviderTest::testValidSchemeConfiguration()
- 3.x tests/src/Unit/FlysystemServiceProviderTest.php \Drupal\Tests\flysystem\Unit\FlysystemServiceProviderTest::testValidSchemeConfiguration()
- 2.0.x tests/src/Unit/FlysystemServiceProviderTest.php \Drupal\Tests\flysystem\Unit\FlysystemServiceProviderTest::testValidSchemeConfiguration()
@covers ::register
File
- tests/
src/ Unit/ FlysystemServiceProviderTest.php, line 63
Class
- FlysystemServiceProviderTest
- @coversDefaultClass \Drupal\flysystem\FlysystemServiceProvider @group flysystem
Namespace
Drupal\Tests\flysystem\UnitCode
public function testValidSchemeConfiguration() {
new Settings([
'flysystem' => [
'testscheme' => [
'driver' => 'whatever',
],
],
]);
(new FlysystemServiceProvider())
->register($this->container);
$this
->assertTrue($this->container
->has('flysystem_stream_wrapper.testscheme'));
$this
->assertSame(FlysystemBridge::class, $this->container
->getDefinition('flysystem_stream_wrapper.testscheme')
->getClass());
$this
->assertSame([
[
'scheme' => 'testscheme',
],
], $this->container
->getDefinition('flysystem_stream_wrapper.testscheme')
->getTag('stream_wrapper'));
}