You are here

protected function TestFileOwnership::doCheck in Automatic Updates 8

Perform checks.

Return value

array An array of translatable strings if any checks fail.

Overrides FileOwnership::doCheck

File

tests/src/Kernel/ReadinessChecker/FileOwnershipTest.php, line 50

Class

TestFileOwnership
Class TestFileOwnership.

Namespace

Drupal\Tests\automatic_updates\Kernel\ReadinessChecker

Code

protected function doCheck() {
  $file_stream = vfsStream::setup('core', '755', [
    'core.api.php' => 'contents',
  ]);
  $file = $file_stream
    ->getChild('core.api.php');
  $file
    ->chown(23)
    ->chgrp(23);
  return $this
    ->ownerIsScriptUser($file
    ->url());
}