function LocaleBulkDeprecationTest::testDeprecatedLocaleConfigBatchRefreshName

Tests the deprecation of locale_config_batch_refresh_name().

Attributes

#[IgnoreDeprecations]

See also

locale_config_batch_refresh_name()

File

core/modules/locale/tests/src/Unit/LocaleBulkDeprecationTest.php, line 42

Class

LocaleBulkDeprecationTest
Tests locale.bulk.inc.

Namespace

Drupal\Tests\locale\Unit

Code

public function testDeprecatedLocaleConfigBatchRefreshName() : void {
  $this->expectDeprecation('locale_config_batch_refresh_name() is deprecated in drupal:11.1.0 and is removed from drupal:12.0.0. Use locale_config_batch_update_config_translations() instead. See https://www.drupal.org/node/3475054');
  $names = [
    'English',
    'German',
  ];
  $langcodes = [
    'en',
    'de',
  ];
  locale_config_batch_refresh_name($names, $langcodes, $context);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.