diff --git a/core/modules/views/lib/Drupal/views/Tests/Handler/AreaHTTPStatusCodeTest.php b/core/modules/views/lib/Drupal/views/Tests/Handler/AreaHTTPStatusCodeTest.php index e5d08ad..587f592 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Handler/AreaHTTPStatusCodeTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Handler/AreaHTTPStatusCodeTest.php @@ -31,12 +31,13 @@ public function testHTTPStatusCodeHandler() { // Change the http status code to 403. $view = views_get_view('test_http_status_code'); - $display = $view->storage->getDisplay('default'); - $display['display_options']['empty']['http_status_code']['status_code'] = 403; + $display = &$view->storage->getDisplay('default'); + $display['display_options']['empty']['http_status_code']['status_code'] = 418; $view->save(); + // Test that the http response is "I'm a teapot". $this->drupalGet('test-http-status-code'); - $this->assertResponse(403); + $this->assertResponse(418); } } diff --git a/core/modules/views/lib/Drupal/views/ViewExecutable.php b/core/modules/views/lib/Drupal/views/ViewExecutable.php index 95403e6..d02b660 100644 --- a/core/modules/views/lib/Drupal/views/ViewExecutable.php +++ b/core/modules/views/lib/Drupal/views/ViewExecutable.php @@ -320,7 +320,7 @@ class ViewExecutable { /** * Stores the current response object. * - * @var Symfony\Component\HttpFoundation\Response + * @var \Symfony\Component\HttpFoundation\Response */ protected $response = NULL; @@ -1545,7 +1545,7 @@ public function access($displays = NULL, $account = NULL) { /** * Sets the used response object of the view. * - * @param Symfony\Component\HttpFoundation\Response $response + * @param \Symfony\Component\HttpFoundation\Response $response * The response object which should be set. */ public function setResponse(Response $response) { @@ -1555,7 +1555,7 @@ public function setResponse(Response $response) { /** * Gets the response object used by the view. * - * @return Symfony\Component\HttpFoundation\Response + * @return \Symfony\Component\HttpFoundation\Response * The response object of the view. */ public function getResponse() {