You are here

public function MigrateSyslogConfigsTest::testSyslogSettings in Drupal 10

Same name in this branch
  1. 10 core/modules/syslog/tests/src/Kernel/Migrate/d6/MigrateSyslogConfigsTest.php \Drupal\Tests\syslog\Kernel\Migrate\d6\MigrateSyslogConfigsTest::testSyslogSettings()
  2. 10 core/modules/syslog/tests/src/Kernel/Migrate/d7/MigrateSyslogConfigsTest.php \Drupal\Tests\syslog\Kernel\Migrate\d7\MigrateSyslogConfigsTest::testSyslogSettings()
Same name and namespace in other branches
  1. 8 core/modules/syslog/tests/src/Kernel/Migrate/d7/MigrateSyslogConfigsTest.php \Drupal\Tests\syslog\Kernel\Migrate\d7\MigrateSyslogConfigsTest::testSyslogSettings()
  2. 9 core/modules/syslog/tests/src/Kernel/Migrate/d7/MigrateSyslogConfigsTest.php \Drupal\Tests\syslog\Kernel\Migrate\d7\MigrateSyslogConfigsTest::testSyslogSettings()

Tests migration of syslog variables to syslog.settings.yml.

File

core/modules/syslog/tests/src/Kernel/Migrate/d7/MigrateSyslogConfigsTest.php, line 36

Class

MigrateSyslogConfigsTest
Upgrade variables to syslog.settings.yml.

Namespace

Drupal\Tests\syslog\Kernel\Migrate\d7

Code

public function testSyslogSettings() {
  $config = $this
    ->config('syslog.settings');

  // 8 == LOG_USER
  $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'));
}