public function UrlValidatorTest::testUrlIsExternal in Mini site 8
Test for urlIsExternal().
@dataProvider dataProviderUrlIsExternal @covers \Drupal\minisite\UrlValidator::urlIsExternal
File
- tests/
src/ Kernel/ UrlValidatorTest.php, line 25
Class
- UrlValidatorTest
- Class UrlValidatorTest.
Namespace
Drupal\Tests\minisite\KernelCode
public function testUrlIsExternal($url, $is_external) {
$actual = UrlValidator::urlIsExternal($url);
$this
->assertEquals($is_external, $actual);
}