public function ViewAjaxControllerTest::testMissingViewName in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php \Drupal\Tests\views\Unit\Controller\ViewAjaxControllerTest::testMissingViewName()
Tests missing view_name and view_display_id.
File
- core/modules/ views/ tests/ src/ Unit/ Controller/ ViewAjaxControllerTest.php, line 123 
Class
- ViewAjaxControllerTest
- @coversDefaultClass \Drupal\views\Controller\ViewAjaxController @group views
Namespace
Drupal\Tests\views\Unit\ControllerCode
public function testMissingViewName() {
  $request = new Request();
  $this
    ->expectException(NotFoundHttpException::class);
  $this->viewAjaxController
    ->ajaxView($request);
}