diff --git a/core/modules/system/src/Tests/File/ReadOnlyStreamWrapperTest.php b/core/modules/system/src/Tests/File/ReadOnlyStreamWrapperTest.php index d1128c4..44a9af1 100644 --- a/core/modules/system/src/Tests/File/ReadOnlyStreamWrapperTest.php +++ b/core/modules/system/src/Tests/File/ReadOnlyStreamWrapperTest.php @@ -2,6 +2,9 @@ namespace Drupal\system\Tests\File; +use Drupal\Core\StreamWrapper\StreamWrapperInterface; +use Drupal\file_test\StreamWrapper\DummyReadOnlyStreamWrapper; + /** * Tests the read-only stream wrapper write functions. * @@ -27,6 +30,10 @@ class ReadOnlyStreamWrapperTest extends FileTestBase { * Test read-only specific behavior. */ function testReadOnlyBehavior() { + $type = DummyReadOnlyStreamWrapper::getType(); + // Checks that the stream wrapper type is not declared as writable. + $this->assertIdentical(0, $type & StreamWrapperInterface::WRITE); + // Generate a test file $filename = $this->randomMachineName(); $site_path = $this->container->get('site.path'); diff --git a/core/tests/Drupal/Tests/Core/File/LocalReadOnlyStreamTest.php b/core/tests/Drupal/Tests/Core/File/LocalReadOnlyStreamTest.php deleted file mode 100644 index e870576..0000000 --- a/core/tests/Drupal/Tests/Core/File/LocalReadOnlyStreamTest.php +++ /dev/null @@ -1,24 +0,0 @@ -assertSame(0, $type & StreamWrapperInterface::WRITE); - } - -}