comparison 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
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
1 <?php
2
3 namespace Drupal\Tests\locale\Kernel;
4
5 use Drupal\KernelTests\KernelTestBase;
6
7 /**
8 * Tests deprecations in the locale module.
9 *
10 * @group locale
11 * @group legacy
12 */
13 class LocaleDeprecationsTest extends KernelTestBase {
14
15 /**
16 * Modules to enable.
17 *
18 * @var array
19 */
20 public static $modules = ['locale', 'system'];
21
22 /**
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.
24 */
25 public function testLocaleTranslationManualStatusDeprecation() {
26 module_load_include('pages.inc', 'locale');
27 $this->assertNotNull(\locale_translation_manual_status());
28 }
29
30 }