public function UrlTest::testIsExternal in Drupal 8
Tests the isExternal() method.
@depends testUrlFromRequest
@covers ::isExternal
File
- core/
tests/ Drupal/ Tests/ Core/ UrlTest.php, line 303 - Contains \Drupal\Tests\Core\UrlTest.
Class
- UrlTest
- @coversDefaultClass \Drupal\Core\Url @group UrlTest
Namespace
Drupal\Tests\CoreCode
public function testIsExternal($urls) {
foreach ($urls as $url) {
$this
->assertFalse($url
->isExternal());
}
}