MigrateSyslogConfigsTest.php in Drupal 9
File
core/modules/syslog/tests/src/Kernel/Migrate/d7/MigrateSyslogConfigsTest.php
View source
<?php
namespace Drupal\Tests\syslog\Kernel\Migrate\d7;
use Drupal\Tests\SchemaCheckTestTrait;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
class MigrateSyslogConfigsTest extends MigrateDrupal7TestBase {
use SchemaCheckTestTrait;
protected static $modules = [
'syslog',
];
protected function setUp() : void {
parent::setUp();
$this
->installConfig(static::$modules);
$this
->executeMigration('d7_syslog_settings');
}
public function testSyslogSettings() {
$config = $this
->config('syslog.settings');
$this
->assertSame(8, $config
->get('facility'));
$this
->assertSame('!base_url|!timestamp|!type|!ip|!request_uri|!referer|!uid|!link|!message', $config
->get('format'));
$this
->assertSame('drupal', $config
->get('identity'));
}
}