3 namespace Drupal\Tests\content_translation\Functional;
5 use Drupal\Tests\BrowserTestBase;
8 * Tests the content translation UI check skip.
10 * @group content_translation
12 class ContentTranslationUISkipTest extends BrowserTestBase {
19 public static $modules = ['content_translation_test', 'user', 'node'];
22 * Tests the content_translation_ui_skip key functionality.
24 public function testUICheckSkip() {
25 $admin_user = $this->drupalCreateUser([
26 'translate any entity',
27 'administer content translation',
28 'administer languages'
30 $this->drupalLogin($admin_user);
31 // Visit the content translation.
32 $this->drupalGet('admin/config/regional/content-language');
34 // Check the message regarding UI integration.
35 $this->assertText('Test entity - Translatable skip UI check');
36 $this->assertText('Test entity - Translatable check UI (Translation is not supported)');