function ViewAjaxControllerTest::testMissingViewName
Tests missing view_name and view_display_id.
File
-
core/
modules/ views/ tests/ src/ Unit/ Controller/ ViewAjaxControllerTest.php, line 129
Class
- ViewAjaxControllerTest
- @coversDefaultClass \Drupal\views\Controller\ViewAjaxController[[api-linebreak]] @group views
Namespace
Drupal\Tests\views\Unit\ControllerCode
public function testMissingViewName() : void {
$request = new Request();
$this->expectException(NotFoundHttpException::class);
$this->viewAjaxController
->ajaxView($request);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.