public function LingotekManageLingotekTranslationsPermissionTest::testNodeTranslateDoesntContainBulkActions in Lingotek Translation 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNodeTranslateDoesntContainBulkActions()
- 4.0.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNodeTranslateDoesntContainBulkActions()
- 3.1.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNodeTranslateDoesntContainBulkActions()
- 3.2.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNodeTranslateDoesntContainBulkActions()
- 3.3.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNodeTranslateDoesntContainBulkActions()
- 3.4.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNodeTranslateDoesntContainBulkActions()
- 3.5.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNodeTranslateDoesntContainBulkActions()
- 3.6.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNodeTranslateDoesntContainBulkActions()
- 3.7.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNodeTranslateDoesntContainBulkActions()
- 3.8.x tests/src/Functional/LingotekManageLingotekTranslationsPermissionTest.php \Drupal\Tests\lingotek\Functional\LingotekManageLingotekTranslationsPermissionTest::testNodeTranslateDoesntContainBulkActions()
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 200
Class
- LingotekManageLingotekTranslationsPermissionTest
- Tests different permissions of the Lingotek module.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testNodeTranslateDoesntContainBulkActions() {
$assert_session = $this
->assertSession();
// Create a user that can create content and translate it, but not with the
// Lingotek module.
$contentManager = $this
->createUser([
'access toolbar',
'access content overview',
'administer nodes',
'assign lingotek translation profiles',
'create article content',
'translate any entity',
]);
$this
->drupalLogin($contentManager);
$edit = [];
$edit['title[0][value]'] = 'Llamas are cool';
$edit['body[0][value]'] = 'Llamas are very cool';
$edit['langcode[0][value]'] = 'en';
$edit['lingotek_translation_management[lingotek_translation_profile]'] = 'manual';
$this
->saveAndPublishNodeForm($edit);
$this
->clickLink('Translate');
// We don't have any operations or actions available.
$assert_session
->linkNotExists('Upload');
$this
->assertNoFieldByName('op');
}