You are here

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

@covers ::__construct @covers ::create @covers ::routes

File

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

Class

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

Namespace

Drupal\Tests\flysystem\Unit\Routing

Code

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