function PageTest::testBuildBasicRenderableWithMissingRoute

Same name in other branches
  1. 9 core/modules/views/tests/src/Unit/Plugin/display/PageTest.php \Drupal\Tests\views\Unit\Plugin\display\PageTest::testBuildBasicRenderableWithMissingRoute()
  2. 8.9.x core/modules/views/tests/src/Unit/Plugin/display/PageTest.php \Drupal\Tests\views\Unit\Plugin\display\PageTest::testBuildBasicRenderableWithMissingRoute()
  3. 10 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 36

Class

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

Namespace

Drupal\Tests\views\Unit\Plugin\display

Code

public function testBuildBasicRenderableWithMissingRoute() : void {
    $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.