You are here

protected function FileOwnership::doCheck in Automatic Updates 8

Perform checks.

Return value

array An array of translatable strings if any checks fail.

Overrides Filesystem::doCheck

1 method overrides FileOwnership::doCheck()
TestFileOwnership::doCheck in tests/src/Kernel/ReadinessChecker/FileOwnershipTest.php
Perform checks.

File

src/ReadinessChecker/FileOwnership.php, line 13

Class

FileOwnership
File ownership checker.

Namespace

Drupal\automatic_updates\ReadinessChecker

Code

protected function doCheck() {
  $file_path = $this
    ->getRootPath() . DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, [
    'core',
    'core.api.php',
  ]);
  return $this
    ->ownerIsScriptUser($file_path);
}