function ContentTranslationConfigUITest::testContentTranslationConfigUI

Same name in other branches
  1. 10 core/modules/content_translation/tests/src/FunctionalJavascript/ContentTranslationConfigUITest.php \Drupal\Tests\content_translation\FunctionalJavascript\ContentTranslationConfigUITest::testContentTranslationConfigUI()

Tests that the content translation configuration javascript does't fail.

File

core/modules/content_translation/tests/src/FunctionalJavascript/ContentTranslationConfigUITest.php, line 36

Class

ContentTranslationConfigUITest
Tests that the content translation configuration javascript does't fail.

Namespace

Drupal\Tests\content_translation\FunctionalJavascript

Code

public function testContentTranslationConfigUI() : void {
    $content_translation_manager = $this->container
        ->get('content_translation.manager');
    $content_translation_manager->setEnabled('node', 'article', TRUE);
    $this->rebuildContainer();
    $admin = $this->drupalCreateUser([], NULL, TRUE);
    $this->drupalLogin($admin);
    $this->drupalGet('/admin/config/regional/content-language');
    $this->failOnJavaScriptErrors();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.