function MigrateStatisticsConfigsTest::testStatisticsSettings

Same name in this branch
  1. 10 core/modules/statistics/tests/src/Kernel/Migrate/d7/MigrateStatisticsConfigsTest.php \Drupal\Tests\statistics\Kernel\Migrate\d7\MigrateStatisticsConfigsTest::testStatisticsSettings()
Same name in other branches
  1. 9 core/modules/statistics/tests/src/Kernel/Migrate/d6/MigrateStatisticsConfigsTest.php \Drupal\Tests\statistics\Kernel\Migrate\d6\MigrateStatisticsConfigsTest::testStatisticsSettings()
  2. 9 core/modules/statistics/tests/src/Kernel/Migrate/d7/MigrateStatisticsConfigsTest.php \Drupal\Tests\statistics\Kernel\Migrate\d7\MigrateStatisticsConfigsTest::testStatisticsSettings()
  3. 8.9.x core/modules/statistics/tests/src/Kernel/Migrate/d6/MigrateStatisticsConfigsTest.php \Drupal\Tests\statistics\Kernel\Migrate\d6\MigrateStatisticsConfigsTest::testStatisticsSettings()
  4. 8.9.x core/modules/statistics/tests/src/Kernel/Migrate/d7/MigrateStatisticsConfigsTest.php \Drupal\Tests\statistics\Kernel\Migrate\d7\MigrateStatisticsConfigsTest::testStatisticsSettings()
  5. 11.x core/modules/statistics/tests/src/Kernel/Migrate/d6/MigrateStatisticsConfigsTest.php \Drupal\Tests\statistics\Kernel\Migrate\d6\MigrateStatisticsConfigsTest::testStatisticsSettings()
  6. 11.x core/modules/statistics/tests/src/Kernel/Migrate/d7/MigrateStatisticsConfigsTest.php \Drupal\Tests\statistics\Kernel\Migrate\d7\MigrateStatisticsConfigsTest::testStatisticsSettings()

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

File

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

Class

MigrateStatisticsConfigsTest
Upgrade variables to statistics.settings.yml.

Namespace

Drupal\Tests\statistics\Kernel\Migrate\d6

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.