You are here

public function FlysystemPathProcessorTest::testDownloadPathsInSubDirsAreProccessed in Flysystem 8

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

@covers ::processInbound

File

tests/src/Unit/PathProcessor/FlysystemPathProcessorTest.php, line 49

Class

FlysystemPathProcessorTest
@coversDefaultClass \Drupal\flysystem\PathProcessor\FlysystemPathProcessor @group flysystem

Namespace

Drupal\Tests\flysystem\Unit\PathProcessor

Code

public function testDownloadPathsInSubDirsAreProccessed() {
  $request = new Request();
  $processor = new FlysystemPathProcessor();
  $this
    ->assertSame('/_flysystem/scheme', $processor
    ->processInbound('/_flysystem/scheme/a/b/c/file.txt', $request));
  $this
    ->assertSame('a/b/c/file.txt', $request->query
    ->get('file'));
}