Update to Drupal 8.0.0-beta15. For more information, see: https://www.drupal.org/node/2563023
This commit is contained in:
parent
2720a9ec4b
commit
f3791f1da3
1898 changed files with 54300 additions and 11481 deletions
|
@ -127,6 +127,15 @@ abstract class LocalStream implements StreamWrapperInterface {
|
|||
$uri = $this->uri;
|
||||
}
|
||||
$path = $this->getDirectoryPath() . '/' . $this->getTarget($uri);
|
||||
|
||||
// In PHPUnit tests, the base path for local streams may be a virtual
|
||||
// filesystem stream wrapper URI, in which case this local stream acts like
|
||||
// a proxy. realpath() is not supported by vfsStream, because a virtual
|
||||
// file system does not have a real filepath.
|
||||
if (strpos($path, 'vfs://') === 0) {
|
||||
return $path;
|
||||
}
|
||||
|
||||
$realpath = realpath($path);
|
||||
if (!$realpath) {
|
||||
// This file does not yet exist.
|
||||
|
|
Reference in a new issue