use Drupal\block_content\Entity\BlockContent;
use Drupal\block_content\Entity\BlockContentType;
-use Drupal\Component\Utility\Unicode;
-use Drupal\content_translation\Tests\ContentTranslationUITestBase;
+use Drupal\Tests\content_translation\Functional\ContentTranslationUITestBase;
/**
* Tests the block content translation UI.
'content_translation',
'block',
'field_ui',
- 'block_content'
+ 'block_content',
];
/**
$bundle = BlockContentType::create([
'id' => $this->bundle,
'label' => $this->bundle,
- 'revision' => FALSE
+ 'revision' => FALSE,
]);
$bundle->save();
}
'translate any entity',
'access administration pages',
'administer blocks',
- 'administer block_content fields'
+ 'administer block_content fields',
]);
}
$block_content = BlockContent::create([
'info' => $title,
'type' => $bundle,
- 'langcode' => 'en'
+ 'langcode' => 'en',
]);
$block_content->save();
return $block_content;
* {@inheritdoc}
*/
protected function getNewEntityValues($langcode) {
- return ['info' => Unicode::strtolower($this->randomMachineName())] + parent::getNewEntityValues($langcode);
+ return ['info' => mb_strtolower($this->randomMachineName())] + parent::getNewEntityValues($langcode);
}
/**
$bundle = BlockContentType::create([
'id' => $disabled_bundle,
'label' => $disabled_bundle,
- 'revision' => FALSE
+ 'revision' => FALSE,
]);
$bundle->save();