You are here

public function ReadOnlyFilesystemTest::testDifferentLogicDiskWritable in Automatic Updates 8

Tests root and vendor directories are writable on different logical disks.

@covers ::run

File

tests/src/Kernel/ReadinessChecker/ReadOnlyFilesystemTest.php, line 85

Class

ReadOnlyFilesystemTest
@coversDefaultClass \Drupal\automatic_updates\ReadinessChecker\ReadOnlyFilesystem

Namespace

Drupal\Tests\automatic_updates\Kernel\ReadinessChecker

Code

public function testDifferentLogicDiskWritable() {
  $readOnly = new TestReadOnlyFilesystem(self::getVfsRoot(), $this->container
    ->get('logger.channel.automatic_updates'), $this->container
    ->get('file_system'));
  $this
    ->assertEquals([], $readOnly
    ->run());
}