function ViewExecutableTest::testGetUrlWithOverriddenUrl
Tests get url with overridden url.
@legacy-covers ::getUrl
File
-
core/
modules/ views/ tests/ src/ Unit/ ViewExecutableTest.php, line 185
Class
Namespace
Drupal\Tests\views\UnitCode
public function testGetUrlWithOverriddenUrl() : void {
$url = Url::fromRoute('example');
$this->executable->override_url = $url;
$this->assertSame($url, $this->executable
->getUrl());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.