You are here

node_type_config_translations.php in Acquia Content Hub 8.2

Expectation for node type configuration entity translation scenario.

File

tests/fixtures/import/drupal-9.2/expectations/node/node_type_config_translations.php
View 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,
];