Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
|
@ -0,0 +1,15 @@
|
|||
id: d6_syslog_settings
|
||||
label: Drupal 6 system log configuration
|
||||
migration_tags:
|
||||
- Drupal 6
|
||||
source:
|
||||
plugin: variable
|
||||
variables:
|
||||
- syslog_identity
|
||||
- syslog_facility
|
||||
process:
|
||||
identity: syslog_identity
|
||||
facility: syslog_facility
|
||||
destination:
|
||||
plugin: config
|
||||
config_name: syslog.settings
|
|
@ -0,0 +1,17 @@
|
|||
id: d7_syslog_settings
|
||||
label: Drupal 7 syslog configuration
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
source:
|
||||
plugin: variable
|
||||
variables:
|
||||
- syslog_facility
|
||||
- syslog_format
|
||||
- syslog_identity
|
||||
process:
|
||||
facility: syslog_facility
|
||||
format: syslog_format
|
||||
identity: syslog_identity
|
||||
destination:
|
||||
plugin: config
|
||||
config_name: syslog.settings
|
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\syslog\Tests\Migrate\d6\MigrateSyslogConfigsTest.
|
||||
*/
|
||||
|
||||
namespace Drupal\syslog\Tests\Migrate\d6;
|
||||
|
||||
use Drupal\config\Tests\SchemaCheckTestTrait;
|
||||
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
|
||||
|
||||
/**
|
||||
* Upgrade variables to syslog.settings.yml.
|
||||
*
|
||||
* @group syslog
|
||||
*/
|
||||
class MigrateSyslogConfigsTest extends MigrateDrupal6TestBase {
|
||||
|
||||
use SchemaCheckTestTrait;
|
||||
|
||||
/**
|
||||
* Modules to enable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $modules = array('syslog');
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
$this->loadDumps(['Variable.php']);
|
||||
$this->executeMigration('d6_syslog_settings');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests migration of syslog variables to syslog.settings.yml.
|
||||
*/
|
||||
public function testSyslogSettings() {
|
||||
$config = $this->config('syslog.settings');
|
||||
$this->assertIdentical('drupal', $config->get('identity'));
|
||||
$this->assertIdentical('128', $config->get('facility'));
|
||||
$this->assertConfigSchema(\Drupal::service('config.typed'), 'syslog.settings', $config->get());
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\syslog\Tests\Migrate\d7\MigrateSyslogConfigsTest.
|
||||
*/
|
||||
|
||||
namespace Drupal\syslog\Tests\Migrate\d7;
|
||||
|
||||
use Drupal\config\Tests\SchemaCheckTestTrait;
|
||||
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
|
||||
|
||||
/**
|
||||
* Upgrade variables to syslog.settings.yml.
|
||||
*
|
||||
* @group syslog
|
||||
*/
|
||||
class MigrateSyslogConfigsTest extends MigrateDrupal7TestBase {
|
||||
|
||||
use SchemaCheckTestTrait;
|
||||
|
||||
/**
|
||||
* Modules to enable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $modules = ['syslog'];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
$this->installConfig(static::$modules);
|
||||
$this->loadDumps(['Variable.php']);
|
||||
$this->executeMigration('d7_syslog_settings');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests migration of syslog variables to syslog.settings.yml.
|
||||
*/
|
||||
public function testSyslogSettings() {
|
||||
$config = $this->config('syslog.settings');
|
||||
// 8 == LOG_USER
|
||||
$this->assertIdentical('8', $config->get('facility'));
|
||||
$this->assertIdentical('!base_url|!timestamp|!type|!ip|!request_uri|!referer|!uid|!link|!message', $config->get('format'));
|
||||
$this->assertIdentical('drupal', $config->get('identity'));
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue