update
This commit is contained in:
@@ -422,6 +422,7 @@ function _simpletest_batch_finished($success, $results, $operations, $elapsed) {
|
||||
*
|
||||
* @param $test_id
|
||||
* The test ID to get the last test from.
|
||||
*
|
||||
* @return array
|
||||
* Array containing the last database prefix used and the last test class
|
||||
* that ran.
|
||||
|
||||
@@ -151,7 +151,7 @@ abstract class KernelTestBase extends TestBase {
|
||||
$this->configDirectories = [];
|
||||
// Assign the relative path to the global variable.
|
||||
$path = $this->siteDirectory . '/config_' . CONFIG_SYNC_DIRECTORY;
|
||||
// Ensure the directory can be created and is writeable.
|
||||
// Ensure the directory can be created and is writable.
|
||||
if (!\Drupal::service('file_system')->prepareDirectory($path, FileSystemInterface::CREATE_DIRECTORY | FileSystemInterface::MODIFY_PERMISSIONS)) {
|
||||
throw new \RuntimeException("Failed to create '" . CONFIG_SYNC_DIRECTORY . "' config directory $path");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user