You are here

public function FlysystemRoutesTest::testInvalidDriversAreSkipped in Flysystem 8

Same name and namespace in other branches
  1. 3.x tests/src/Unit/Routing/FlysystemRoutesTest.php \Drupal\Tests\flysystem\Unit\Routing\FlysystemRoutesTest::testInvalidDriversAreSkipped()
  2. 2.0.x tests/src/Unit/Routing/FlysystemRoutesTest.php \Drupal\Tests\flysystem\Unit\Routing\FlysystemRoutesTest::testInvalidDriversAreSkipped()
  3. 3.0.x tests/src/Unit/Routing/FlysystemRoutesTest.php \Drupal\Tests\flysystem\Unit\Routing\FlysystemRoutesTest::testInvalidDriversAreSkipped()

@covers ::routes

File

tests/src/Unit/Routing/FlysystemRoutesTest.php, line 76

Class

FlysystemRoutesTest
@coversDefaultClass \Drupal\flysystem\Routing\FlysystemRoutes @group flysystem

Namespace

Drupal\Tests\flysystem\Unit\Routing

Code

public function testInvalidDriversAreSkipped() {
  new Settings([
    'flysystem' => [
      'test' => [
        'driver' => 'ftp',
      ],
    ],
  ]);
  $this
    ->assertSame([], $this->router
    ->routes());
}