You are here

public function LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager in Lingotek Translation 3.7.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
  2. 4.0.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
  3. 3.0.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
  4. 3.1.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
  5. 3.2.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
  6. 3.3.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
  7. 3.4.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
  8. 3.5.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
  9. 3.6.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNavigationThroughSiteForBulkContentTranslationAsTranslationsManager()
  10. 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\Functional

Code

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');
}