diff --git a/core/modules/simpletest/drupal_web_test_case.php b/core/modules/simpletest/drupal_web_test_case.php index a1387b592c044667ed26a30cad43f1665ec4d993..8f2e0b392f56df480afcea8c6b3e7d6b6aa51247 100644 --- a/core/modules/simpletest/drupal_web_test_case.php +++ b/core/modules/simpletest/drupal_web_test_case.php @@ -1351,7 +1351,7 @@ protected function setUp() { // Create and set a new configuration directory and signature key. // The child site automatically adjusts the global $config_directory_name to // a test-prefix-specific directory within the public files directory. - $GLOBALS['config_directory_name'] = 'simpletest/config_' . substr($this->databasePrefix, 10); + $GLOBALS['config_directory_name'] = 'simpletest/config_' . $this->databasePrefix; $this->configFileDirectory = $this->originalFileDirectory . '/' . $GLOBALS['config_directory_name']; file_prepare_directory($this->configFileDirectory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS); $GLOBALS['config_signature_key'] = drupal_hash_base64(drupal_random_bytes(55));