public function LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkConfigTranslationAsTranslationsManager in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkConfigTranslationAsTranslationsManager()
- 3.0.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkConfigTranslationAsTranslationsManager()
- 3.1.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkConfigTranslationAsTranslationsManager()
- 3.2.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkConfigTranslationAsTranslationsManager()
- 3.3.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkConfigTranslationAsTranslationsManager()
- 3.4.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkConfigTranslationAsTranslationsManager()
- 3.5.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkConfigTranslationAsTranslationsManager()
- 3.6.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkConfigTranslationAsTranslationsManager()
- 3.7.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkConfigTranslationAsTranslationsManager()
- 3.8.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkConfigTranslationAsTranslationsManager()
Tests that a user can navigate to the config bulk translation pages.
File
- tests/
src/ Functional/ LingotekManageLingotekTranslationsPermissionTest.php, line 118
Class
- LingotekManageLingotekTranslationsPermissionTest
- Tests different permissions of the Lingotek module.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testNavigationThroughSiteForBulkConfigTranslationAsTranslationsManager() {
$assert_session = $this
->assertSession();
// Login as translations manager.
$this
->drupalLogin($this->translationManagerUser);
$this
->drupalGet('/user');
// Assert the toolbar has the proper links for configuration and translation.
$assert_session
->linkExists('Configuration');
$assert_session
->linkExists('Translation');
// Assert in the configuration panes we have access to Lingotek Translation.
$this
->clickLink('Configuration');
$this
->assertText('Regional and language');
$this
->clickLink('Lingotek Translation');
// Config shouldn't be visible unless we can translate settings too.
$this
->assertSession()
->linkNotExistsExact('Config');
}