Skip to content
Snippets Groups Projects
Commit 480c9661 authored by catch's avatar catch
Browse files

Issue #3355122 by joachim, dww, D34dMan: ContentTranslationContextualLinksTest...

Issue #3355122 by joachim, dww, D34dMan: ContentTranslationContextualLinksTest should use API calls to set up translation

(cherry picked from commit b1dd9f7e)
parent e1601411
No related branches found
No related tags found
Loading
......@@ -42,14 +42,9 @@ protected function setUp(): void {
$this->drupalCreateContentType(['type' => 'page']);
// Enable content translation.
$this->drupalLogin($this->rootUser);
$this->drupalGet('admin/config/regional/content-language');
$edit = [
'entity_types[node]' => TRUE,
'settings[node][page][translatable]' => TRUE,
];
$this->submitForm($edit, 'Save configuration');
$this->drupalLogout();
$content_translation_manager = $this->container->get('content_translation.manager');
$content_translation_manager->setEnabled('node', 'page', TRUE);
$this->rebuildContainer();
// Create a translator user.
$permissions = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment