node_type_config_translations.php in Acquia Content Hub 8.2
Same filename in this branch
- 8.2 tests/fixtures/import/drupal-9.2/expectations/node/node_type_config_translations.php
- 8.2 tests/fixtures/import/drupal-9.0/expectations/node/node_type_config_translations.php
- 8.2 tests/fixtures/import/drupal-8.9/expectations/node/node_type_config_translations.php
- 8.2 tests/fixtures/import/drupal-9.1/expectations/node/node_type_config_translations.php
- 8.2 tests/fixtures/import/drupal-8.8/expectations/node/node_type_config_translations.php
Expectation for node type configuration entity translation scenario.
File
tests/fixtures/import/drupal-9.2/expectations/node/node_type_config_translations.phpView source
<?php
/**
* @file
* Expectation for node type configuration entity translation scenario.
*/
use Drupal\Tests\acquia_contenthub\Kernel\Stubs\CdfExpectations;
$data = [
'name' => [
'en' => 'Article',
'be' => 'Артыкул',
'ru' => 'Статья',
],
'description' => [
'en' => 'Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.',
'be' => 'беларускі пераклад апісання',
'ru' => 'русский перевод описания',
],
'help' => [
'en' => '',
'be' => '',
'ru' => '',
],
];
$expectation = new CdfExpectations($data);
$expectation
->setLangcodes([
'en',
'be',
'ru',
]);
return [
'06bddad6-c004-414f-802a-eade9b2624b6' => $expectation,
];