diff --git a/core/modules/system/src/Tests/HttpKernel/CorsIntegrationTest.php b/core/modules/system/src/Tests/HttpKernel/CorsIntegrationTest.php index c1c4c55..d201998 100755 --- a/core/modules/system/src/Tests/HttpKernel/CorsIntegrationTest.php +++ b/core/modules/system/src/Tests/HttpKernel/CorsIntegrationTest.php @@ -25,6 +25,7 @@ class CorsIntegrationTest extends WebTestBase { public function testCrossSiteRequest() { // Test default parameters. $cors_config = $this->container->getParameter('cors.config'); + $this->assertFalse($cors_config['enabled']); $this->assertEqual([], $cors_config['allowedHeaders']); $this->assertEqual([], $cors_config['allowedMethods']); $this->assertEqual(['*'], $cors_config['allowedOrigins']); @@ -37,6 +38,7 @@ public function testCrossSiteRequest() { // specify an origin header. $request = Request::create('/'); $request->headers->set('Origin', ''); + $cors_config['enabled'] = TRUE; $cors_config['allowedOrigins'] = array('http://example.com'); $this->setContainerParameter('cors.config', $cors_config); $this->rebuildContainer();