You are here

public function FlysystemRoutesTest::testInvalidDriversAreSkipped in Flysystem 3.x

Same name and namespace in other branches
  1. 8 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 78

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());
}