Commit 7bc79206 authored by catch's avatar catch

Issue #2263273 by alexpott: Config_snapshot table can be created by the storage class itself.

parent 69fb5dc7
......@@ -42,7 +42,6 @@ public static function getInfo() {
public function setUp() {
parent::setUp();
$this->installSchema('system', 'config_snapshot');
$this->installSchema('node', 'node');
$this->copyConfig($this->container->get('config.storage'), $this->container->get('config.storage.staging'));
......
......@@ -51,7 +51,6 @@ public static function getInfo() {
public function setUp() {
parent::setUp();
$this->installSchema('system', 'config_snapshot');
$this->installSchema('node', 'node');
// Set up the ConfigImporter object for testing.
......
......@@ -43,8 +43,6 @@ public static function getInfo() {
function setUp() {
parent::setUp();
$this->installSchema('system', 'config_snapshot');
$this->installConfig(array('config_test'));
// Installing config_test's default configuration pollutes the global
// variable being used for recording hook invocations by this test already,
......
......@@ -31,7 +31,6 @@ public static function getInfo() {
public function setUp() {
parent::setUp();
$this->installSchema('system', 'config_snapshot');
$this->copyConfig($this->container->get('config.storage'), $this->container->get('config.storage.staging'));
}
......
......@@ -32,7 +32,6 @@ public static function getInfo() {
public function setUp() {
parent::setUp();
$this->installSchema('system', 'config_snapshot');
// Update the config snapshot. This allows the parent::setUp() to write
// configuration files.
\Drupal::service('config.manager')->createSnapshot(\Drupal::service('config.storage'), \Drupal::service('config.storage.snapshot'));
......
......@@ -37,7 +37,7 @@ abstract class FieldUnitTestBase extends DrupalUnitTestBase {
function setUp() {
parent::setUp();
$this->installSchema('entity_test', 'entity_test');
$this->installSchema('system', array('sequences', 'config_snapshot'));
$this->installSchema('system', array('sequences'));
$this->installSchema('user', array('users', 'users_roles'));
// Set default storage backend and configure the theme system.
......
......@@ -27,8 +27,6 @@ class NodeImportChangeTest extends DrupalUnitTestBase {
public function setUp() {
parent::setUp();
$this->installSchema('system', array('config_snapshot'));
// Set default storage backend.
$this->installConfig(array('field', 'node_test_config'));
}
......
......@@ -26,8 +26,6 @@ class NodeImportCreateTest extends DrupalUnitTestBase {
*/
public function setUp() {
parent::setUp();
$this->installSchema('system', array('config_snapshot'));
$this->installSchema('user', array('users'));
// Set default storage backend.
......
......@@ -956,25 +956,5 @@ function system_schema() {
),
);
$schema['config_snapshot'] = array(
'description' => 'Stores a snapshot of the last imported configuration.',
'fields' => array(
'name' => array(
'description' => 'The identifier for the config object (the name of the file, minus the file extension).',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'data' => array(
'description' => 'The raw data for this configuration object.',
'type' => 'blob',
'not null' => TRUE,
'size' => 'big',
),
),
'primary key' => array('name'),
);
return $schema;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment