menu_config_translations.php in Acquia Content Hub 8.2
Same filename in this branch
- 8.2 tests/fixtures/import/drupal-9.2/expectations/menu/menu_config_translations.php
- 8.2 tests/fixtures/import/drupal-9.0/expectations/menu/menu_config_translations.php
- 8.2 tests/fixtures/import/drupal-8.9/expectations/menu/menu_config_translations.php
- 8.2 tests/fixtures/import/drupal-9.1/expectations/menu/menu_config_translations.php
- 8.2 tests/fixtures/import/drupal-8.8/expectations/menu/menu_config_translations.php
Expectation for menu configuration entity translation scenario.
File
tests/fixtures/import/drupal-9.0/expectations/menu/menu_config_translations.phpView source
<?php
/**
* @file
* Expectation for menu configuration entity translation scenario.
*/
use Drupal\Tests\acquia_contenthub\Kernel\Stubs\CdfExpectations;
$data = [
'label' => [
'en' => 'Test menu',
'be' => 'BE: Test menu',
'ru' => 'RU: Test menu',
],
'description' => [
'en' => 'a test menu',
'be' => 'BE: a test menu',
'ru' => 'RU: a test menu',
],
'locked' => [
'en' => FALSE,
'be' => FALSE,
'ru' => FALSE,
],
];
$expectation = new CdfExpectations($data);
$expectation
->setLangcodes([
'en',
'be',
'ru',
]);
return [
'33e106d4-b365-4bb1-b44f-8beeecb4616f' => $expectation,
];