You are here

public function ViewAjaxControllerTest::testMissingViewName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php \Drupal\Tests\views\Unit\Controller\ViewAjaxControllerTest::testMissingViewName()

Tests missing view_name and view_display_id

@expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException

File

core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php, line 124
Contains \Drupal\Tests\views\Unit\Controller\ViewAjaxControllerTest.

Class

ViewAjaxControllerTest
@coversDefaultClass \Drupal\views\Controller\ViewAjaxController @group views

Namespace

Drupal\Tests\views\Unit\Controller

Code

public function testMissingViewName() {
  $request = new Request();
  $this->viewAjaxController
    ->ajaxView($request);
}