class ConfigTranslationUiTest in Drupal 10
Same name in this branch
- 10 core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationUiTest
- 10 core/modules/config_translation/tests/src/FunctionalJavascript/ConfigTranslationUiTest.php \Drupal\Tests\config_translation\FunctionalJavascript\ConfigTranslationUiTest
Same name and namespace in other branches
- 8 core/modules/config_translation/tests/src/FunctionalJavascript/ConfigTranslationUiTest.php \Drupal\Tests\config_translation\FunctionalJavascript\ConfigTranslationUiTest
- 9 core/modules/config_translation/tests/src/FunctionalJavascript/ConfigTranslationUiTest.php \Drupal\Tests\config_translation\FunctionalJavascript\ConfigTranslationUiTest
Translate settings and entities to various languages.
@group config_translation
Hierarchy
- class \Drupal\Tests\BrowserTestBase extends \PHPUnit\Framework\TestCase uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, FunctionalTestSetupTrait, TestSetupTrait, BlockCreationTrait, ConfigTestTrait, ExtensionListTestTrait, ContentTypeCreationTrait, NodeCreationTrait, RandomGeneratorTrait, TestRequirementsTrait, PhpUnitWarnings, UiHelperTrait, UserCreationTrait, XdebugRequestTrait
- class \Drupal\FunctionalJavascriptTests\WebDriverTestBase
- class \Drupal\Tests\config_translation\FunctionalJavascript\ConfigTranslationUiTest
- class \Drupal\FunctionalJavascriptTests\WebDriverTestBase
Expanded class hierarchy of ConfigTranslationUiTest
File
- core/
modules/ config_translation/ tests/ src/ FunctionalJavascript/ ConfigTranslationUiTest.php, line 12
Namespace
Drupal\Tests\config_translation\FunctionalJavascriptView source
class ConfigTranslationUiTest extends WebDriverTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'config_translation',
'contextual',
'node',
'views',
'views_ui',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Tests that contextual link related to views.
*/
public function testViewContextualLink() {
$user = $this
->drupalCreateUser([
'translate configuration',
'access contextual links',
]);
$this
->drupalLogin($user);
$this
->drupalGet('node');
$contextualLinks = $this
->assertSession()
->waitForElement('css', '.contextual-links');
$link = $contextualLinks
->findLink('Translate view');
$this
->assertNotNull($link, 'Translate view contextual link added.');
}
}