diff --git a/core/includes/file.inc b/core/includes/file.inc index c487b81..9083dec 100644 --- a/core/includes/file.inc +++ b/core/includes/file.inc @@ -199,7 +199,7 @@ function file_get_stream_wrappers($filter = STREAM_WRAPPERS_ALL) { // Add defaults. $wrappers[$scheme] += array('type' => STREAM_WRAPPERS_NORMAL); } - drupal_alter('stream_wrappers', $wrappers); + \Drupal::moduleHandler()->alter('stream_wrappers', $wrappers); } $existing = stream_get_wrappers(); foreach ($wrappers as $scheme => $info) { diff --git a/core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php b/core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php index 2071ced..6857149 100644 --- a/core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php @@ -22,6 +22,20 @@ */ public static $modules = array('system'); + /** + * A stream wrapper scheme to register for the test. + * + * @var string + */ + protected $scheme; + + /** + * A fully-qualified stream wrapper class name to register for the test. + * + * @var string + */ + protected $classname; + function setUp() { parent::setUp(); $this->installConfig(array('system'));