3 namespace Drupal\Tests\syslog\Kernel\Migrate\d7;
5 use Drupal\Tests\SchemaCheckTestTrait;
6 use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
9 * Upgrade variables to syslog.settings.yml.
13 class MigrateSyslogConfigsTest extends MigrateDrupal7TestBase {
15 use SchemaCheckTestTrait;
22 public static $modules = ['syslog'];
27 protected function setUp() {
29 $this->installConfig(static::$modules);
30 $this->executeMigration('d7_syslog_settings');
34 * Tests migration of syslog variables to syslog.settings.yml.
36 public function testSyslogSettings() {
37 $config = $this->config('syslog.settings');
39 $this->assertIdentical(8, $config->get('facility'));
40 $this->assertIdentical('!base_url|!timestamp|!type|!ip|!request_uri|!referer|!uid|!link|!message', $config->get('format'));
41 $this->assertIdentical('drupal', $config->get('identity'));