You are here

public function LocalTest::testReturnsValidExternalUrl in Flysystem 8

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

@covers ::getExternalUrl

File

tests/src/Unit/Flysystem/LocalTest.php, line 96

Class

LocalTest
@coversDefaultClass \Drupal\flysystem\Flysystem\Local @group flysystem

Namespace

Drupal\Tests\flysystem\Unit\Flysystem

Code

public function testReturnsValidExternalUrl() {
  $plugin = new Local('foo/bar', TRUE);
  $this
    ->assertSame('http://example.com/foo/bar/test%20thing.html', $plugin
    ->getExternalUrl('uri://test thing.html'));
}