function ViewExecutableTest::testGetUrlWithoutRouterDisplay
Same name in other branches
- 9 core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::testGetUrlWithoutRouterDisplay()
- 10 core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::testGetUrlWithoutRouterDisplay()
- 11.x core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::testGetUrlWithoutRouterDisplay()
@covers ::getUrl
File
-
core/
modules/ views/ tests/ src/ Unit/ ViewExecutableTest.php, line 187
Class
- ViewExecutableTest
- @coversDefaultClass \Drupal\views\ViewExecutable @group views
Namespace
Drupal\Tests\views\UnitCode
public function testGetUrlWithoutRouterDisplay() {
$this->displayHandler = $this->createMock('Drupal\\views\\Plugin\\views\\display\\DisplayPluginInterface');
$this->displayHandlers
->expects($this->any())
->method('get')
->willReturn($this->displayHandler);
$this->executable->display_handler = $this->displayHandler;
$this->expectException(\InvalidArgumentException::class);
$this->executable
->getUrl();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.