diff -u b/core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php b/core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php --- b/core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php +++ b/core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php @@ -79,7 +79,7 @@ /** * {@inheritdoc} */ - public function import(Row $row, array $old_destination_id_values = array()) { + public function import(Row $row, array $old_destination_id_values = []) { return (bool) $this->connection ->insert('node_counter') ->fields([ diff -u b/core/modules/statistics/tests/src/Kernel/Migrate/d6/MigrateNodeCounterTest.php b/core/modules/statistics/tests/src/Kernel/Migrate/d6/MigrateNodeCounterTest.php --- b/core/modules/statistics/tests/src/Kernel/Migrate/d6/MigrateNodeCounterTest.php +++ b/core/modules/statistics/tests/src/Kernel/Migrate/d6/MigrateNodeCounterTest.php @@ -2,11 +2,10 @@ namespace Drupal\Tests\statistics\Kernel\Migrate\d6; -use Drupal\statistics\StatisticsViewsResult; use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase; /** - * Upgrade node counter. + * Tests the migration of node counter data to Drupal 8. * * @group statistics */ diff -u b/core/modules/statistics/tests/src/Kernel/Migrate/d7/MigrateNodeCounterTest.php b/core/modules/statistics/tests/src/Kernel/Migrate/d7/MigrateNodeCounterTest.php --- b/core/modules/statistics/tests/src/Kernel/Migrate/d7/MigrateNodeCounterTest.php +++ b/core/modules/statistics/tests/src/Kernel/Migrate/d7/MigrateNodeCounterTest.php @@ -2,11 +2,10 @@ namespace Drupal\Tests\statistics\Kernel\Migrate\d7; -use Drupal\statistics\StatisticsViewsResult; use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase; /** - * Upgrade node counter. + * Tests the migration of node counter data to Drupal 8. * * @group statistics */ diff -u b/core/modules/statistics/tests/src/Kernel/Plugin/migrate/source/NodeCounterTest.php b/core/modules/statistics/tests/src/Kernel/Plugin/migrate/source/NodeCounterTest.php --- b/core/modules/statistics/tests/src/Kernel/Plugin/migrate/source/NodeCounterTest.php +++ b/core/modules/statistics/tests/src/Kernel/Plugin/migrate/source/NodeCounterTest.php @@ -8,6 +8,7 @@ * Tests the node_counter source plugin. * * @covers \Drupal\statistics\Plugin\migrate\source\NodeCounter + * * @group statistics */ class NodeCounterTest extends MigrateSqlSourceTestBase {