Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / content_translation / tests / src / Functional / ContentTranslationUISkipTest.php
1 <?php
2
3 namespace Drupal\Tests\content_translation\Functional;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8  * Tests the content translation UI check skip.
9  *
10  * @group content_translation
11  */
12 class ContentTranslationUISkipTest extends BrowserTestBase {
13
14   /**
15    * Modules to enable.
16    *
17    * @var array
18    */
19   public static $modules = ['content_translation_test', 'user', 'node'];
20
21   /**
22    * Tests the content_translation_ui_skip key functionality.
23    */
24   public function testUICheckSkip() {
25     $admin_user = $this->drupalCreateUser([
26       'translate any entity',
27       'administer content translation',
28       'administer languages'
29     ]);
30     $this->drupalLogin($admin_user);
31     // Visit the content translation.
32     $this->drupalGet('admin/config/regional/content-language');
33
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)');
37   }
38
39 }