diff --git a/core/modules/system/src/Tests/System/HtaccessTest.php b/core/modules/system/src/Tests/System/HtaccessTest.php index 028956f..3335033 100644 --- a/core/modules/system/src/Tests/System/HtaccessTest.php +++ b/core/modules/system/src/Tests/System/HtaccessTest.php @@ -17,14 +17,7 @@ class HtaccessTest extends WebTestBase { /** - * Modules to enable. - * - * @var array - */ - public static $modules = ['file']; - - /** - * Tests accessing YAML file extensions. + * Tests accessing files with .yml extensions at various locations. */ public function testYamlFileAccess() { // Try accessing the core services YAML file. @@ -33,21 +26,6 @@ public function testYamlFileAccess() { // Try accessing a core module YAML file. $this->drupalGet('core/modules/system/system.services.yml'); $this->assertResponse(403); - - $file_params = array( - 'filename' => 'test.yml', - 'uri' => 'public://test.yml', - 'filemime' => 'text/yaml', - 'status' => FILE_STATUS_PERMANENT, - ); - // Create a new file entity. - $file = entity_create('file', $file_params); - file_put_contents($file->getFileUri(), 'test: value'); - $file->save(); - - // Access the file saved in the public files directory. - $this->drupalGet($file->url()); - $this->assertResponse(200); } }