diff --git a/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php b/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php index bb59f502c3..f47b06630f 100644 --- a/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php +++ b/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php @@ -239,9 +239,9 @@ public function testBlockMigration() { // Check statistic block settings. $settings = [ - 'id' => 'broken', + 'id' => 'statistics_popular_block', 'label' => '', - 'provider' => 'core', + 'provider' => 'statistics', 'label_display' => '0', 'top_day_num' => 7, 'top_all_num' => 8, diff --git a/core/modules/search/src/Tests/SearchRankingTest.php b/core/modules/search/src/Tests/SearchRankingTest.php index 28241d2af2..7293a06f8c 100644 --- a/core/modules/search/src/Tests/SearchRankingTest.php +++ b/core/modules/search/src/Tests/SearchRankingTest.php @@ -95,7 +95,7 @@ public function testRankings() { $this->drupalPostForm(NULL, $edit, t('Save')); // Enable counting of statistics. - $this->config('statistics.settings')->set('count_content_views', 1)->save(); + $this->config('statistics.settings')->set('entity_type_ids', ['node'])->save(); // Simulating content views is kind of difficult in the test. Leave that // to the Statistics module. So instead go ahead and manually update the diff --git a/core/modules/statistics/tests/src/Functional/StatisticsLoggingTest.php b/core/modules/statistics/tests/src/Functional/StatisticsLoggingTest.php index a7b67e0b30..cdc79a1532 100644 --- a/core/modules/statistics/tests/src/Functional/StatisticsLoggingTest.php +++ b/core/modules/statistics/tests/src/Functional/StatisticsLoggingTest.php @@ -112,13 +112,13 @@ public function testLogging() { $this->drupalGet($path); $settings = $this->getDrupalSettings(); $this->assertPattern($expected_library, 'Found statistics library JS on node page.'); - $this->assertIdentical($this->node->id(), $settings['statistics']['data']['nid'], 'Found statistics settings on node page.'); + $this->assertIdentical($this->node->id(), $settings['statistics']['data']['id'], 'Found statistics settings on node page.'); // Verify the same when loading the site in a non-default language. $this->drupalGet($this->language['langcode'] . '/' . $path); $settings = $this->getDrupalSettings(); $this->assertPattern($expected_library, 'Found statistics library JS on a valid node page in a non-default language.'); - $this->assertIdentical($this->node->id(), $settings['statistics']['data']['nid'], 'Found statistics settings on valid node page in a non-default language.'); + $this->assertIdentical($this->node->id(), $settings['statistics']['data']['id'], 'Found statistics settings on valid node page in a non-default language.'); // Manually call statistics.php to simulate ajax data collection behavior. global $base_root;