function NodeTranslationUITest::testTranslationUI

Tests the basic translation UI.

Overrides ContentTranslationUITestBase::testTranslationUI

File

core/modules/node/tests/src/Functional/NodeTranslationUITest.php, line 83

Class

NodeTranslationUITest
Tests the Node Translation UI.

Namespace

Drupal\Tests\node\Functional

Code

public function testTranslationUI() : void {
  // Enable promote and sticky fields.
  \Drupal::service('entity_display.repository')->getFormDisplay('node', 'article')
    ->setComponent('promote', [
    'type' => 'boolean_checkbox',
  ])
    ->setComponent('sticky', [
    'type' => 'boolean_checkbox',
  ])
    ->save();
  parent::testTranslationUI();
  $this->doUninstallTest();
}

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