Mercurial > hg > isophonics-drupal-site
annotate core/modules/locale/tests/src/Kernel/LocaleDeprecationsTest.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children |
rev | line source |
---|---|
Chris@14 | 1 <?php |
Chris@14 | 2 |
Chris@14 | 3 namespace Drupal\Tests\locale\Kernel; |
Chris@14 | 4 |
Chris@14 | 5 use Drupal\KernelTests\KernelTestBase; |
Chris@14 | 6 |
Chris@14 | 7 /** |
Chris@14 | 8 * Tests deprecations in the locale module. |
Chris@14 | 9 * |
Chris@14 | 10 * @group locale |
Chris@14 | 11 * @group legacy |
Chris@14 | 12 */ |
Chris@14 | 13 class LocaleDeprecationsTest extends KernelTestBase { |
Chris@14 | 14 |
Chris@14 | 15 /** |
Chris@14 | 16 * Modules to enable. |
Chris@14 | 17 * |
Chris@14 | 18 * @var array |
Chris@14 | 19 */ |
Chris@14 | 20 public static $modules = ['locale', 'system']; |
Chris@14 | 21 |
Chris@14 | 22 /** |
Chris@14 | 23 * @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. |
Chris@14 | 24 */ |
Chris@14 | 25 public function testLocaleTranslationManualStatusDeprecation() { |
Chris@14 | 26 module_load_include('pages.inc', 'locale'); |
Chris@14 | 27 $this->assertNotNull(\locale_translation_manual_status()); |
Chris@14 | 28 } |
Chris@14 | 29 |
Chris@14 | 30 } |