You are here

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

@covers ::processInbound

File

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

Class

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

Namespace

Drupal\Tests\flysystem\Unit\PathProcessor

Code

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