function UrlTest::testGetRouteName
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::testGetRouteName()
- 10 core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::testGetRouteName()
- 11.x core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::testGetRouteName()
Tests the getRouteName() method.
@depends testUrlFromRequest
@covers ::getRouteName
Parameters
\Drupal\Core\Url[] $urls: An array of Url objects.
File
-
core/
tests/ Drupal/ Tests/ Core/ UrlTest.php, line 409
Class
- UrlTest
- @coversDefaultClass \Drupal\Core\Url @group UrlTest
Namespace
Drupal\Tests\CoreCode
public function testGetRouteName($urls) {
foreach ($urls as $index => $url) {
$this->assertSame($this->map[$index][0], $url->getRouteName());
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.