function ViewExecutableTest::testGetUrlWithOverriddenUrl

Same name in other branches
  1. 9 core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::testGetUrlWithOverriddenUrl()
  2. 8.9.x core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::testGetUrlWithOverriddenUrl()
  3. 11.x 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 179

Class

ViewExecutableTest
@coversDefaultClass \Drupal\views\ViewExecutable @group views

Namespace

Drupal\Tests\views\Unit

Code

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.