You are here

public function LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions 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::testConfigTranslateDoesntContainBulkActions()
  2. 4.0.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
  3. 3.0.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
  4. 3.1.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
  5. 3.2.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
  6. 3.3.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
  7. 3.4.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
  8. 3.5.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
  9. 3.6.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
  10. 3.8.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()

The node translation form doesn't contain any operations if the current user is not a translation manager.

File

tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php, line 233

Class

LingotekManageLingotekTranslationsPermissionTest
Tests different permissions of the Lingotek module.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testConfigTranslateDoesntContainBulkActions() {
  $assert_session = $this
    ->assertSession();

  // Login as a user that can translate configuration, but cannot manage
  // Lingotek translations.
  $contentManager = $this
    ->createUser([
    'access toolbar',
    'access administration pages',
    'administer site configuration',
    'translate configuration',
  ]);
  $this
    ->drupalLogin($contentManager);

  // Check that the translate tab is in the site information.
  $this
    ->drupalGet('/admin/config/system/site-information');
  $this
    ->clickLink('Translate system information');

  // We don't have any operations available.
  $assert_session
    ->linkNotExists('Upload');
}