function ContentTranslationUISkipTest::testUICheckSkip

Same name in other branches
  1. 9 core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationUISkipTest::testUICheckSkip()
  2. 10 core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationUISkipTest::testUICheckSkip()
  3. 11.x core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationUISkipTest::testUICheckSkip()

Tests the content_translation_ui_skip key functionality.

File

core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php, line 29

Class

ContentTranslationUISkipTest
Tests the content translation UI check skip.

Namespace

Drupal\Tests\content_translation\Functional

Code

public function testUICheckSkip() {
    $admin_user = $this->drupalCreateUser([
        'translate any entity',
        'administer content translation',
        'administer languages',
    ]);
    $this->drupalLogin($admin_user);
    // Visit the content translation.
    $this->drupalGet('admin/config/regional/content-language');
    // Check the message regarding UI integration.
    $this->assertText('Test entity - Translatable skip UI check');
    $this->assertText('Test entity - Translatable check UI (Translation is not supported)');
}

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