You are here

public function FlysystemServiceProviderTest::testMissingDriverIsSkipped in Flysystem 2.0.x

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

@covers ::register

File

tests/src/Unit/FlysystemServiceProviderTest.php, line 52

Class

FlysystemServiceProviderTest
@coversDefaultClass \Drupal\flysystem\FlysystemServiceProvider @group flysystem

Namespace

Drupal\Tests\flysystem\Unit

Code

public function testMissingDriverIsSkipped() {
  new Settings([
    'flysystem' => [
      'testscheme' => [],
    ],
  ]);
  (new FlysystemServiceProvider())
    ->register($this->container);
  $this
    ->assertFalse($this->container
    ->has('flysystem_stream_wrapper.testscheme'));
}