You are here

public function MigrateStatisticsConfigsTest::testStatisticsSettings in Drupal 8

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

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

File

core/modules/statistics/tests/src/Kernel/Migrate/d6/MigrateStatisticsConfigsTest.php, line 33

Class

MigrateStatisticsConfigsTest
Upgrade variables to statistics.settings.yml.

Namespace

Drupal\Tests\statistics\Kernel\Migrate\d6

Code

public function testStatisticsSettings() {
  $config = $this
    ->config('statistics.settings');
  $this
    ->assertSame(1, $config
    ->get('count_content_views'));
  $this
    ->assertConfigSchema(\Drupal::service('config.typed'), 'statistics.settings', $config
    ->get());
}