You are here

public static function DeprecationListenerTrait::getSkippedDeprecations in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php \Drupal\Tests\Listeners\DeprecationListenerTrait::getSkippedDeprecations()

A list of deprecations to ignore whilst fixes are put in place.

Do not add any new deprecations to this list. All deprecation errors will eventually be removed from this list.

@internal

@todo Fix all these deprecations and remove them from this list. https://www.drupal.org/project/drupal/issues/2959269

Return value

string[] A list of deprecations to ignore.

See also

https://www.drupal.org/node/2811561

3 calls to DeprecationListenerTrait::getSkippedDeprecations()
DeprecationListenerTrait::deprecationEndTest in core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php
Reacts to the end of a test.
DeprecationListenerTrait::registerErrorHandler in core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php
Registers an error handler that wraps Symfony's DeprecationErrorHandler.
WebTestBase::curlHeaderCallback in core/modules/simpletest/src/WebTestBase.php
Reads headers and registers errors received from the tested site.

File

core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php, line 119

Class

DeprecationListenerTrait
Removes deprecations that we are yet to fix.

Namespace

Drupal\Tests\Listeners

Code

public static function getSkippedDeprecations() {
  return [
    'MigrateCckField is deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. Use \\Drupal\\migrate_drupal\\Annotation\\MigrateField instead.',
    'MigrateCckFieldPluginManager is deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. Use \\Drupal\\migrate_drupal\\Annotation\\MigrateFieldPluginManager instead.',
    'MigrateCckFieldPluginManagerInterface is deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x. Use \\Drupal\\migrate_drupal\\Annotation\\MigrateFieldPluginManagerInterface instead.',
    'The "plugin.manager.migrate.cckfield" service is deprecated. You should use the \'plugin.manager.migrate.field\' service instead. See https://www.drupal.org/node/2751897',
    'The Symfony\\Component\\ClassLoader\\ApcClassLoader class is deprecated since Symfony 3.3 and will be removed in 4.0. Use `composer install --apcu-autoloader` instead.',
    // The following deprecation is not triggered by DrupalCI testing since it
    // is a Windows only deprecation. Remove when core no longer uses
    // WinCacheClassLoader in \Drupal\Core\DrupalKernel::initializeSettings().
    'The Symfony\\Component\\ClassLoader\\WinCacheClassLoader class is deprecated since Symfony 3.3 and will be removed in 4.0. Use `composer install --apcu-autoloader` instead.',
    // The following deprecation message is skipped for testing purposes.
    '\\Drupal\\Tests\\SkippedDeprecationTest deprecation',
    // These deprecations are triggered by symfony/psr-http-message-factory
    // 1.2, which can be installed if you update dependencies on php 7 or
    // higher
    'The "Symfony\\Bridge\\PsrHttpMessage\\Factory\\DiactorosFactory" class is deprecated since symfony/psr-http-message-bridge 1.2, use PsrHttpFactory instead.',
    'The "psr7.http_message_factory" service relies on the deprecated "Symfony\\Bridge\\PsrHttpMessage\\Factory\\DiactorosFactory" class. It should either be deprecated or its implementation upgraded.',
    // This deprecation comes from behat/mink-browserkit-driver when updating
    // symfony/browser-kit to 4.3+.
    'The "Symfony\\Component\\BrowserKit\\Response::getStatus()" method is deprecated since Symfony 4.3, use getStatusCode() instead.',
    'The "core/jquery.ui.checkboxradio" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. See https://www.drupal.org/node/3067969',
    'The "core/jquery.ui.controlgroup" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. See https://www.drupal.org/node/3067969',
    'The "core/html5shiv" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. See https://www.drupal.org/node/3086383',
    'The "core/matchmedia" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. See https://www.drupal.org/node/3086653',
    'The "core/matchmedia.addListener" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. See https://www.drupal.org/node/3086653',
    'The "core/classList" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use the native browser implementation instead. See https://www.drupal.org/node/3089511',
    'The "core/jquery.ui.datepicker" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. See https://www.drupal.org/node/3081864',
    'The "locale/drupal.locale.datepicker" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. See https://www.drupal.org/node/3081864',
    'The "https://www.drupal.org/link-relations/create" string as a RestResource plugin annotation URI path key is deprecated in Drupal 8.4.0, now a valid link relation type name must be specified, so "create" must be specified instead before Drupal 9.0.0. See https://www.drupal.org/node/2737401.',
  ];
}