public function UrlHelperTest::testEncodePath in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php \Drupal\Tests\Component\Utility\UrlHelperTest::testEncodePath()
Tests path encoding.
@dataProvider providerTestEncodePath @covers ::encodePath
Parameters
string $path: A path to encode.
string $expected: The expected encoded path.
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ UrlHelperTest.php, line 317 - Contains \Drupal\Tests\Component\Utility\UrlHelperTest.
Class
- UrlHelperTest
- @group Utility
Namespace
Drupal\Tests\Component\UtilityCode
public function testEncodePath($path, $expected) {
$encoded = UrlHelper::encodePath($path);
$this
->assertEquals($expected, $encoded);
}