Commit 0308764e authored by catch's avatar catch

Issue #2551259 by Mile23, gaurav.kapoor, Jo Fitzgerald, googletorp, Jeremy,...

Issue #2551259 by Mile23, gaurav.kapoor, Jo Fitzgerald, googletorp, Jeremy, xjm, webchick: Deprecate dead code locale_translation_manual_status()
parent 8e9f1b61
......@@ -13,9 +13,14 @@
*
* Manually checks the translation status without the use of cron.
*
* @see locale_menu()
* @deprecated in Drupal 8.5.0 and will be removed before 9.0.0. It is unused by
* Drupal core. Duplicate this function in your own extension if you need its
* behavior.
*
* @see https://www.drupal.org/node/2931188
*/
function locale_translation_manual_status() {
@trigger_error('locale_translation_manual_status() is deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. It is unused by Drupal core. Duplicate this function in your own extension if you need its behavior.', E_USER_DEPRECATED);
module_load_include('compare.inc', 'locale');
// Check the translation status of all translatable projects in all languages.
......
<?php
namespace Drupal\Tests\locale\Kernel;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests deprecations in the locale module.
*
* @group locale
* @group legacy
*/
class LocaleDeprecationsTest extends KernelTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = ['locale', 'system'];
/**
* @expectedDeprecation locale_translation_manual_status() is deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. It is unused by Drupal core. Duplicate this function in your own extension if you need its behavior.
*/
public function testLocaleTranslationManualStatusDeprecation() {
module_load_include('pages.inc', 'locale');
$this->assertNotNull(\locale_translation_manual_status());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment