function LocaleBulkDeprecationTest::testDeprecatedLocaleConfigBatchSetConfigLangcodes

Tests the deprecation of locale_config_batch_set_config_langcodes().

@group legacy

See also

locale_config_batch_set_config_langcodes()

File

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

Class

LocaleBulkDeprecationTest
Tests locale.bulk.inc.

Namespace

Drupal\Tests\locale\Unit

Code

public function testDeprecatedLocaleConfigBatchSetConfigLangcodes() : void {
    $this->expectDeprecation('locale_config_batch_set_config_langcodes() is deprecated in drupal:11.1.0 and is removed from drupal:12.0.0. Use locale_config_batch_update_default_config_langcodes() instead. See https://www.drupal.org/node/3475054');
    $context = [];
    locale_config_batch_set_config_langcodes($context);
}

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