public function BareMinimalNoConfigUpgradePathTest::setUp

Overrides \Drupal\system\Tests\Upgrade\UpgradePathTestBase::setUp().

Overrides BareMinimalUpgradePathTest::setUp

File

drupal/core/modules/system/lib/Drupal/system/Tests/Upgrade/BareMinimalNoConfigUpgradePathTest.php, line 26
Contains \Drupal\system\Tests\Upgrade\BareMinimalNoConfigUpgradePathTest.

Class

BareMinimalNoConfigUpgradePathTest
Tests the database upgrade path without creating config directories.

Namespace

Drupal\system\Tests\Upgrade

Code

public function setUp() {
  parent::setUp();

  // Override $conf_path and $config_directories in settings.php.
  $settings['conf_path'] = (object) array(
    'value' => $this->public_files_directory,
    'required' => TRUE,
  );
  $settings['config_directories'] = (object) array(
    'value' => array(),
    'required' => TRUE,
  );
  $this
    ->writeSettings($settings);
}