public function ViewExecutableTest::testGetUrlWithOverriddenUrl in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::testGetUrlWithOverriddenUrl()
@covers ::getUrl
File
- core/
modules/ views/ tests/ src/ Unit/ ViewExecutableTest.php, line 116 - Contains \Drupal\Tests\views\Unit\ViewExecutableTest.
Class
- ViewExecutableTest
- @coversDefaultClass \Drupal\views\ViewExecutable @group views
Namespace
Drupal\Tests\views\UnitCode
public function testGetUrlWithOverriddenUrl() {
$url = Url::fromRoute('example');
$this->executable->override_url = $url;
$this
->assertSame($url, $this->executable
->getUrl());
}