public function LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions in Lingotek Translation 3.3.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
- 4.0.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
- 3.0.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
- 3.1.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
- 3.2.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
- 3.4.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
- 3.5.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
- 3.6.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
- 3.7.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testConfigTranslateDoesntContainBulkActions()
- 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\FunctionalCode
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');
}