public function MigrateStatisticsConfigsTest::testStatisticsSettings in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/statistics/src/Tests/Migrate/d6/MigrateStatisticsConfigsTest.php \Drupal\statistics\Tests\Migrate\d6\MigrateStatisticsConfigsTest::testStatisticsSettings()
Tests migration of statistics variables to statistics.settings.yml.
File
- core/
modules/ statistics/ src/ Tests/ Migrate/ d6/ MigrateStatisticsConfigsTest.php, line 38 - Contains \Drupal\statistics\Tests\Migrate\d6\MigrateStatisticsConfigsTest.
Class
- MigrateStatisticsConfigsTest
- Upgrade variables to statistics.settings.yml.
Namespace
Drupal\statistics\Tests\Migrate\d6Code
public function testStatisticsSettings() {
$config = $this
->config('statistics.settings');
$this
->assertIdentical(FALSE, $config
->get('access_log.enabled'));
$this
->assertIdentical(259200, $config
->get('access_log.max_lifetime'));
$this
->assertIdentical(0, $config
->get('count_content_views'));
$this
->assertConfigSchema(\Drupal::service('config.typed'), 'statistics.settings', $config
->get());
}