public function FlysystemRoutesTest::testValidRoutesReturned in Flysystem 8
Same name and namespace in other branches
- 3.x tests/src/Unit/Routing/FlysystemRoutesTest.php \Drupal\Tests\flysystem\Unit\Routing\FlysystemRoutesTest::testValidRoutesReturned()
- 2.0.x tests/src/Unit/Routing/FlysystemRoutesTest.php \Drupal\Tests\flysystem\Unit\Routing\FlysystemRoutesTest::testValidRoutesReturned()
- 3.0.x tests/src/Unit/Routing/FlysystemRoutesTest.php \Drupal\Tests\flysystem\Unit\Routing\FlysystemRoutesTest::testValidRoutesReturned()
@covers ::routes
File
- tests/
src/ Unit/ Routing/ FlysystemRoutesTest.php, line 112
Class
- FlysystemRoutesTest
- @coversDefaultClass \Drupal\flysystem\Routing\FlysystemRoutes @group flysystem
Namespace
Drupal\Tests\flysystem\Unit\RoutingCode
public function testValidRoutesReturned() {
new Settings([
'flysystem' => [
'test' => [
'driver' => 'local',
'public' => TRUE,
'config' => [
'public' => TRUE,
'root' => 'sites/default/files/flysystem',
],
],
],
]);
$routes = $this->router
->routes();
$this
->assertSame(1, count($routes));
$this
->assertTrue(isset($routes['flysystem.test.serve']));
}