class TestReadOnlyFileSystem in Automatic Updates 8
Test class to root and vendor directories in different logic disks.
Calls to stat() does not work on \org\bovigo\vfs\vfsStream.
Hierarchy
- class \Drupal\automatic_updates\ReadinessChecker\Filesystem implements ReadinessCheckerInterface uses StringTranslationTrait
- class \Drupal\automatic_updates\ReadinessChecker\ReadOnlyFilesystem
- class \Drupal\Tests\automatic_updates\Kernel\ReadinessChecker\TestReadOnlyFileSystem
- class \Drupal\automatic_updates\ReadinessChecker\ReadOnlyFilesystem
Expanded class hierarchy of TestReadOnlyFileSystem
File
- tests/
src/ Kernel/ ReadinessChecker/ ReadOnlyFilesystemTest.php, line 207
Namespace
Drupal\Tests\automatic_updates\Kernel\ReadinessCheckerView source
class TestReadOnlyFileSystem extends ReadOnlyFilesystem {
/**
* {@inheritdoc}
*/
protected function areSameLogicalDisk($root, $vendor) {
return FALSE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Filesystem:: |
protected | property | The root file path. | |
Filesystem:: |
protected | property | The vendor file path. | |
Filesystem:: |
protected | function | Get the root file path. | |
Filesystem:: |
protected | function | Get the vendor file path. | |
Filesystem:: |
public | function |
Run check. Overrides ReadinessCheckerInterface:: |
|
ReadOnlyFilesystem:: |
protected | property | The file system service. | |
ReadOnlyFilesystem:: |
protected | property | The logger. | |
ReadOnlyFilesystem:: |
protected | function |
Perform checks. Overrides Filesystem:: |
|
ReadOnlyFilesystem:: |
protected | function | Do the read only check. | |
ReadOnlyFilesystem:: |
protected | function | Check if the filesystem is read only. | |
ReadOnlyFilesystem:: |
public | function |
ReadOnlyFilesystem constructor. Overrides Filesystem:: |
|
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
TestReadOnlyFileSystem:: |
protected | function |
Determine if the root and vendor file system are the same logical disk. Overrides Filesystem:: |