public function UrlTest::testIsExternal in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::testIsExternal()
Tests the isExternal() method.
@depends testUrlFromRequest
@covers ::isExternal
File
- core/
tests/ Drupal/ Tests/ Core/ UrlTest.php, line 304 - 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());
}
}