diff --git a/core/tests/Drupal/Tests/Core/File/LocalReadOnlyStreamTest.php b/core/tests/Drupal/Tests/Core/File/LocalReadOnlyStreamTest.php
new file mode 100644
index 0000000..558a449
--- /dev/null
+++ b/core/tests/Drupal/Tests/Core/File/LocalReadOnlyStreamTest.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\Tests\Core\File;
+
+use Drupal\Core\StreamWrapper\StreamWrapperInterface;
+use Drupal\file_test\StreamWrapper\DummyReadOnlyStreamWrapper;
+use Drupal\Tests\UnitTestCase;
+
+/**
+ * @coversDefaultClass \Drupal\Core\StreamWrapper\LocalReadOnlyStream
+ *
+ * @package File
+ */
+class LocalReadOnlyStreamTest extends UnitTestCase {
+
+  /**
+   * Tests if the stream wrapper correctly returns its type.
+   */
+  public function testGetType() {
+    $type = DummyReadOnlyStreamWrapper::getType();
+    // Checks that the stream wrapper type is not declared as writable.
+    $this->assertSame(0, $type & StreamWrapperInterface::WRITE);
+  }
+
+}
