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
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -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 = [