You are here

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

@covers ::routes

File

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

Class

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

Namespace

Drupal\Tests\flysystem\Unit\Routing

Code

public function testLocalPathSameAsPublicIsSkipped() {
  new Settings([
    'flysystem' => [
      'test' => [
        'driver' => 'local',
        'public' => TRUE,
        'config' => [
          'public' => TRUE,
          'root' => 'sites/default/files',
        ],
      ],
    ],
  ]);
  $this
    ->assertSame([], $this->router
    ->routes());
}