You are here

protected function ThunderImageCompareTestTrait::getFileSystem in Thunder 8.2

Get file system service.

Return value

\Drupal\Core\File\FileSystemInterface Returns file system service.

File

tests/src/FunctionalJavascript/ThunderImageCompareTestTrait.php, line 52

Class

ThunderImageCompareTestTrait
Trait for creating and comparing of screenshots.

Namespace

Drupal\Tests\thunder\FunctionalJavascript

Code

protected function getFileSystem() {
  if (!isset($this->fileSystem)) {
    $this->fileSystem = \Drupal::service('file_system');
  }
  return $this->fileSystem;
}