function PageTest::testBuildBasicRenderableWithMissingRoute

Same name in other branches
  1. 8.9.x core/modules/views/tests/src/Unit/Plugin/display/PageTest.php \Drupal\Tests\views\Unit\Plugin\display\PageTest::testBuildBasicRenderableWithMissingRoute()
  2. 10 core/modules/views/tests/src/Unit/Plugin/display/PageTest.php \Drupal\Tests\views\Unit\Plugin\display\PageTest::testBuildBasicRenderableWithMissingRoute()
  3. 11.x core/modules/views/tests/src/Unit/Plugin/display/PageTest.php \Drupal\Tests\views\Unit\Plugin\display\PageTest::testBuildBasicRenderableWithMissingRoute()

@covers ::buildBasicRenderable

File

core/modules/views/tests/src/Unit/Plugin/display/PageTest.php, line 34

Class

PageTest
@coversDefaultClass \Drupal\views\Plugin\views\display\Page @group views

Namespace

Drupal\Tests\views\Unit\Plugin\display

Code

public function testBuildBasicRenderableWithMissingRoute() {
    $this->expectException(\BadFunctionCallException::class);
    Page::buildBasicRenderable('test_view', 'page_1', []);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.