public function LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager in Lingotek Translation 3.5.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
- 4.0.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
- 3.0.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
- 3.1.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
- 3.2.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
- 3.3.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
- 3.4.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
- 3.6.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
- 3.7.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
- 3.8.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
Tests that a user can navigate to the content bulk translation pages.
File
- tests/
src/ Functional/ LingotekManageLingotekTranslationsPermissionTest.php, line 91
Class
- LingotekManageLingotekTranslationsPermissionTest
- Tests different permissions of the Lingotek module.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager() {
$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');
// Assert we see the dashboard and can navigate to content.
$assert_session
->linkExists('Content');
$this
->clickLink('Content');
$this
->assertText('Manage Translations');
}