You are here

public function LocalPathProcessorTest::setUp in Flysystem 3.0.x

Same name and namespace in other branches
  1. 8 tests/src/Unit/PathProcessor/LocalPathProcessorTest.php \Drupal\Tests\flysystem\Unit\PathProcessor\LocalPathProcessorTest::setUp()
  2. 3.x tests/src/Unit/PathProcessor/LocalPathProcessorTest.php \Drupal\Tests\flysystem\Unit\PathProcessor\LocalPathProcessorTest::setUp()
  3. 2.0.x tests/src/Unit/PathProcessor/LocalPathProcessorTest.php \Drupal\Tests\flysystem\Unit\PathProcessor\LocalPathProcessorTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/PathProcessor/LocalPathProcessorTest.php, line 24

Class

LocalPathProcessorTest
@coversDefaultClass \Drupal\flysystem\PathProcessor\LocalPathProcessor @group flysystem

Namespace

Drupal\Tests\flysystem\Unit\PathProcessor

Code

public function setUp() {
  new Settings([
    'flysystem' => [
      'testscheme' => [
        'driver' => 'local',
        'config' => [
          'root' => 'sites/default/files/flysystem',
        ],
      ],
    ],
  ]);
  $this->processor = new LocalPathProcessor('testscheme');
}