diff --git a/core/modules/views/src/Tests/ViewAjaxTest.php b/core/modules/views/src/Tests/ViewAjaxTest.php
index 1121f41..5d9a97f 100644
--- a/core/modules/views/src/Tests/ViewAjaxTest.php
+++ b/core/modules/views/src/Tests/ViewAjaxTest.php
@@ -8,6 +8,7 @@
 namespace Drupal\views\Tests;
 
 use Drupal\Component\Serialization\Json;
+use Drupal\Core\EventSubscriber\MainContentViewSubscriber;
 
 /**
  * Tests the ajax view functionality.
@@ -51,7 +52,7 @@ public function testAjaxView() {
       'view_display_id' => 'page_1',
     );
     $post += $this->getAjaxPageStatePostData();
-    $response = $this->drupalPost('views/ajax', 'application/vnd.drupal-ajax', $post);
+    $response = $this->drupalPost('views/ajax', '', $post, array('query' => array(MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_ajax')));
     $data = Json::decode($response);
 
     // Ensure that the view insert command is part of the result.
