public function FlysystemServiceProviderTest::testLocalRouteProviderGetsAdded in Flysystem 3.0.x
Same name and namespace in other branches
- 8 tests/src/Unit/FlysystemServiceProviderTest.php \Drupal\Tests\flysystem\Unit\FlysystemServiceProviderTest::testLocalRouteProviderGetsAdded()
- 3.x tests/src/Unit/FlysystemServiceProviderTest.php \Drupal\Tests\flysystem\Unit\FlysystemServiceProviderTest::testLocalRouteProviderGetsAdded()
- 2.0.x tests/src/Unit/FlysystemServiceProviderTest.php \Drupal\Tests\flysystem\Unit\FlysystemServiceProviderTest::testLocalRouteProviderGetsAdded()
@covers ::register
File
- tests/
src/ Unit/ FlysystemServiceProviderTest.php, line 76
Class
- FlysystemServiceProviderTest
- @coversDefaultClass \Drupal\flysystem\FlysystemServiceProvider @group flysystem
Namespace
Drupal\Tests\flysystem\UnitCode
public function testLocalRouteProviderGetsAdded() {
new Settings([
'flysystem' => [
'testscheme' => [
'driver' => 'local',
'config' => [
'public' => TRUE,
],
],
],
]);
(new FlysystemServiceProvider())
->register($this->container);
$this
->assertSame(LocalPathProcessor::class, $this->container
->getDefinition('flysystem.testscheme.path_processor')
->getClass());
}