ContentTranslationUISkipTest.php in Drupal 9
File
core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php
View source
<?php
namespace Drupal\Tests\content_translation\Functional;
use Drupal\Tests\BrowserTestBase;
class ContentTranslationUISkipTest extends BrowserTestBase {
protected static $modules = [
'content_translation_test',
'user',
'node',
];
protected $defaultTheme = 'stark';
public function testUICheckSkip() {
$admin_user = $this
->drupalCreateUser([
'translate any entity',
'administer content translation',
'administer languages',
]);
$this
->drupalLogin($admin_user);
$this
->drupalGet('admin/config/regional/content-language');
$this
->assertSession()
->pageTextContains('Test entity - Translatable skip UI check');
$this
->assertSession()
->pageTextContains('Test entity - Translatable check UI (Translation is not supported)');
}
}