You are here

public function PageTest::testBuildBasicRenderableWithMissingRoute in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Unit/Plugin/display/PageTest.php \Drupal\Tests\views\Unit\Plugin\display\PageTest::testBuildBasicRenderableWithMissingRoute()
  2. 9 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', []);
}