You are here

protected function AutomaticUpdatesFunctionalTestBase::prepareSettings in Automatic Updates 8.2

Prepares site settings and services before installation.

Overrides FunctionalTestSetupTrait::prepareSettings

File

tests/src/Functional/AutomaticUpdatesFunctionalTestBase.php, line 24

Class

AutomaticUpdatesFunctionalTestBase
Base class for functional tests of the Automatic Updates module.

Namespace

Drupal\Tests\automatic_updates\Functional

Code

protected function prepareSettings() {
  parent::prepareSettings();

  // Disable the filesystem permissions validator, since we cannot guarantee
  // that the current code base will be writable in all testing situations. We
  // test this validator in our build tests, since those do give us control
  // over the filesystem permissions.
  // @see \Drupal\Tests\automatic_updates\Build\CoreUpdateTest::assertReadOnlyFileSystemError()
  $settings['settings']['automatic_updates_disable_validators'] = (object) [
    'value' => [
      'automatic_updates.validator.file_system_permissions',
    ],
    'required' => TRUE,
  ];
  $this
    ->writeSettings($settings);
}