<?php/**
* @file
* Contains \Drupal\system\Tests\Upgrade\BareMinimalAnonymousUpgradePathTest.
*/namespaceDrupal\system\Tests\Upgrade;
/**
* Tests the upgrade path without prior creation of config directions.
*/class BareMinimalAnonymousUpgradePathTestextends BareMinimalUpgradePathTest {
public static functiongetInfo() {
returnarray(
'name' => 'Basic minimal profile upgrade, free access',
'description' => 'Basic upgrade path tests for a minimal profile install with a bare database and update_free_access set to TRUE.',
'group' => 'Upgrade path',
);
}
/**
* Overrides \Drupal\system\Tests\Upgrade\UpgradePathTestBase::setUp().
*/
public functionsetUp() {
parent::setUp();
// Override $update_free_access in settings.php to allow the anonymous user
// to run updates.$settings['settings']['update_free_access'] = (object) array(
'value' => TRUE,
'required' => TRUE,
);
$this
->writeSettings($settings);
}
/**
* Overrides \Drupal\system\Tests\Upgrade\UpgradePathTestBase::prepareD8Session().
*/
protected functionprepareD8Session() {
// There is no active session, so nothing needs to be done here.
}
/**
* Overrides \Drupal\system\Tests\Upgrade\UpgradePathTestBase::assertSessionKept().
*/
protected functionfinishUpgradeSession() {
// There is no active session, so nothing needs to be done here.
}
}