Issue #3413917 by quietone, smustgrave, catch, andypost: Deprecate the Statistics module

(cherry picked from commit 8474559cbd)
merge-requests/7626/head
Alex Pott 2024-04-20 16:59:44 +01:00
parent e1dc7a714b
commit 3136408b2a
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
20 changed files with 24 additions and 3 deletions

View File

@ -3,6 +3,8 @@ type: module
description: 'Logs how many times content is viewed.'
package: Core
version: VERSION
lifecycle: deprecated
lifecycle_link: https://www.drupal.org/node/3223395#s-statistics
configure: statistics.settings
dependencies:
- drupal:node

View File

@ -10,5 +10,6 @@ use Drupal\Tests\system\Functional\Module\GenericModuleTestBase;
* Generic module test for statistics.
*
* @group statistics
* @group legacy
*/
class GenericTest extends GenericModuleTestBase {}

View File

@ -14,6 +14,7 @@ use Drupal\Tests\Traits\Core\CronRunTrait;
* Tests the statistics admin.
*
* @group statistics
* @group legacy
*/
class StatisticsAdminTest extends BrowserTestBase {

View File

@ -11,6 +11,7 @@ use Drupal\node\Entity\Node;
* Tests if statistics.js is loaded when content is not printed.
*
* @group statistics
* @group legacy
*/
class StatisticsAttachedTest extends BrowserTestBase {

View File

@ -14,6 +14,7 @@ use Drupal\node\Entity\Node;
* want to test requests from an anonymous user.
*
* @group statistics
* @group legacy
*/
class StatisticsLoggingTest extends BrowserTestBase {

View File

@ -12,6 +12,7 @@ use Drupal\Tests\system\Functional\Cache\AssertPageCacheContextsAndTagsTrait;
* Tests display of statistics report blocks.
*
* @group statistics
* @group legacy
*/
class StatisticsReportsTest extends StatisticsTestBase {

View File

@ -8,6 +8,7 @@ namespace Drupal\Tests\statistics\Functional;
* Tests statistics token replacement.
*
* @group statistics
* @group legacy
*/
class StatisticsTokenReplaceTest extends StatisticsTestBase {

View File

@ -11,6 +11,7 @@ use Drupal\user\Entity\User;
* Tests basic integration of views data from the statistics module.
*
* @group statistics
* @group legacy
* @see
*/
class IntegrationTest extends ViewTestBase {

View File

@ -10,6 +10,7 @@ use Drupal\Tests\migrate_drupal_ui\Functional\NoMultilingualReviewPageTestBase;
* Tests migrate upgrade review page.
*
* @group statistics
* @group legacy
*/
class NoMultilingualReviewPageTest extends NoMultilingualReviewPageTestBase {

View File

@ -12,6 +12,7 @@ use Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeExecuteTestBase;
* The test method is provided by the MigrateUpgradeTestBase class.
*
* @group statistics
* @group legacy
*/
class UpgradeTest extends MigrateUpgradeExecuteTestBase {

View File

@ -12,6 +12,7 @@ use Drupal\Tests\migrate_drupal_ui\Functional\NoMultilingualReviewPageTestBase;
* The test method is provided by the MigrateUpgradeTestBase class.
*
* @group statistics
* @group legacy
*/
class NoMultilingualReviewPageTest extends NoMultilingualReviewPageTestBase {

View File

@ -12,6 +12,7 @@ use Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeExecuteTestBase;
* The test method is provided by the MigrateUpgradeTestBase class.
*
* @group statistics
* @group legacy
*/
class UpgradeTest extends MigrateUpgradeExecuteTestBase {

View File

@ -15,6 +15,7 @@ use Drupal\Tests\Traits\Core\CronRunTrait;
* Indexes content and tests ranking factors.
*
* @group statistics
* @group legacy
*/
class SearchRankingTest extends BrowserTestBase {

View File

@ -12,7 +12,8 @@ use Drupal\user\Entity\Role;
/**
* Tests that statistics works.
*
* @group system
* @group statistics
* @group legacy
*/
class StatisticsLoggingTest extends WebDriverTestBase {

View File

@ -10,6 +10,7 @@ use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
* Tests the migration of node counter data to Drupal 8.
*
* @group statistics
* @group legacy
*/
class MigrateNodeCounterTest extends MigrateDrupal6TestBase {

View File

@ -10,7 +10,8 @@ use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to statistics.settings.yml.
*
* @group migrate_drupal_6
* @group statistics
* @group legacy
*/
class MigrateStatisticsConfigsTest extends MigrateDrupal6TestBase {

View File

@ -10,6 +10,7 @@ use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
* Tests the migration of node counter data to Drupal 8.
*
* @group statistics
* @group legacy
*/
class MigrateNodeCounterTest extends MigrateDrupal7TestBase {

View File

@ -10,7 +10,8 @@ use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Upgrade variables to statistics.settings.yml.
*
* @group migrate_drupal_7
* @group statistics
* @group legacy
*/
class MigrateStatisticsConfigsTest extends MigrateDrupal7TestBase {

View File

@ -14,6 +14,7 @@ use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
* @covers \Drupal\statistics\Plugin\migrate\source\NodeCounter
*
* @group statistics
* @group legacy
*/
class NodeCounterTest extends MigrateSqlSourceTestBase {

View File

@ -10,6 +10,7 @@ use Drupal\Tests\UnitTestCase;
/**
* @coversDefaultClass \Drupal\statistics\StatisticsViewsResult
* @group statistics
* @group legacy
*/
class StatisticsViewsResultTest extends UnitTestCase {