You are here

public function FlysystemRoutesTest::testDriversNotPublicAreSkipped 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::testDriversNotPublicAreSkipped()
  2. 2.0.x tests/src/Unit/Routing/FlysystemRoutesTest.php \Drupal\Tests\flysystem\Unit\Routing\FlysystemRoutesTest::testDriversNotPublicAreSkipped()
  3. 3.0.x tests/src/Unit/Routing/FlysystemRoutesTest.php \Drupal\Tests\flysystem\Unit\Routing\FlysystemRoutesTest::testDriversNotPublicAreSkipped()

@covers ::routes

File

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

Class

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

Namespace

Drupal\Tests\flysystem\Unit\Routing

Code

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