You are here

function ContentTranslationUISkipTest::testUICheckSkip in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/content_translation/src/Tests/ContentTranslationUISkipTest.php \Drupal\content_translation\Tests\ContentTranslationUISkipTest::testUICheckSkip()

Tests the content_translation_ui_skip key functionality.

File

core/modules/content_translation/src/Tests/ContentTranslationUISkipTest.php, line 29
Contains \Drupal\content_translation\Tests\ContentTranslationUISkipTest.

Class

ContentTranslationUISkipTest
Tests the content translation UI check skip.

Namespace

Drupal\content_translation\Tests

Code

function testUICheckSkip() {
  $admin_user = $this
    ->drupalCreateUser(array(
    '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)');
}