public function UrlHelperTest::testExternalIsLocalInvalid 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::testExternalIsLocalInvalid()
Test invalid url arguments.
@covers ::externalIsLocal @dataProvider providerTestExternalIsLocalInvalid @expectedException \InvalidArgumentException
Parameters
string $url: The url to test.
string $base_url: The base url.
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ UrlHelperTest.php, line 546 - Contains \Drupal\Tests\Component\Utility\UrlHelperTest.
Class
- UrlHelperTest
- @group Utility
Namespace
Drupal\Tests\Component\UtilityCode
public function testExternalIsLocalInvalid($url, $base_url) {
UrlHelper::externalIsLocal($url, $base_url);
}