reverted: --- b/core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php +++ a/core/modules/views_ui/src/Tests/ExposedFormUITest.php @@ -1,6 +1,6 @@ drupalCreateContentType(['type' => 'article']); $this->drupalCreateContentType(['type' => 'page']); diff -u b/core/modules/views_ui/tests/src/Functional/UITestBase.php b/core/modules/views_ui/src/Tests/UITestBase.php --- b/core/modules/views_ui/tests/src/Functional/UITestBase.php +++ b/core/modules/views_ui/src/Tests/UITestBase.php @@ -1,11 +1,16 @@ enableViewsTestModule(); @@ -78,9 +83,9 @@ // Ensure that each nojs page is accessible via ajax as well. if (strpos($url, 'nojs') !== FALSE) { $url = str_replace('nojs', 'ajax', $url); - $result = $this->drupalGet($url, $options); - $this->assertSession()->statusCodeEquals(200); - $this->assertEquals('application/json', $this->getSession()->getResponseHeader('Content-Type')); + $result = $this->drupalGet($url, $options, $headers); + $this->assertResponse(200); + $this->assertHeader('Content-Type', 'application/json'); $this->assertTrue(json_decode($result), 'Ensure that the AJAX request returned valid content.'); } reverted: --- b/core/modules/views_ui/tests/src/Functional/ViewEditTest.php +++ a/core/modules/views_ui/src/Tests/ViewEditTest.php @@ -1,6 +1,6 @@