function ContentTranslationUISkipTest::testUICheckSkip
Same name in other branches
- 9 core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationUISkipTest::testUICheckSkip()
- 8.9.x core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationUISkipTest::testUICheckSkip()
- 10 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 31
Class
- ContentTranslationUISkipTest
- Tests the content translation UI check skip.
Namespace
Drupal\Tests\content_translation\FunctionalCode
public function testUICheckSkip() : void {
$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->assertSession()
->pageTextContains('Test entity - Translatable skip UI check');
$this->assertSession()
->pageTextContains('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.