Commit 2c60b6d2 authored by catch's avatar catch

Issue #2801259: Remove include from TestDabase class

parent 8a5abfc0
......@@ -2,14 +2,10 @@
namespace Drupal\Core\Test;
use Drupal\Component\FileSystem\FileSystem;
use Drupal\Core\Database\ConnectionNotDefinedException;
use Drupal\Core\Database\Database;
// This class has a dependency on file_directory_os_temp().
// @todo https://www.drupal.org/node/2794249 Remove once function moved to a
// class.
require_once __DIR__ . '/../../../../includes/file.inc';
/**
* Provides helper methods for interacting with the Simpletest database.
*/
......@@ -169,7 +165,7 @@ public static function releaseAllTestLocks() {
* A file path to the symbolic link that prevents the lock ID being re-used.
*/
protected function getLockFile($lock_id) {
return file_directory_os_temp() . '/test_' . $lock_id;
return FileSystem::getOsTemporaryDirectory() . '/test_' . $lock_id;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment