public function LingotekUtilitiesDisassociateAllDocumentsTest::translateNodeWithLinks in Lingotek Translation 8
1 call to LingotekUtilitiesDisassociateAllDocumentsTest::translateNodeWithLinks()
- LingotekUtilitiesDisassociateAllDocumentsTest::setUp in src/
Tests/ LingotekUtilitiesDisassociateAllDocumentsTest.php - Sets up a Drupal site for running functional and integration tests.
File
- src/
Tests/ LingotekUtilitiesDisassociateAllDocumentsTest.php, line 90
Class
- LingotekUtilitiesDisassociateAllDocumentsTest
- Tests disassociating all site documents.
Namespace
Drupal\lingotek\TestsCode
public function translateNodeWithLinks() {
// Create a node.
$edit = array();
$edit['title[0][value]'] = 'Llamas are cool';
$edit['body[0][value]'] = 'Llamas are very cool';
$edit['langcode[0][value]'] = 'en';
$edit['lingotek_translation_profile'] = 'manual';
$this
->drupalPostForm('node/add/article', $edit, t('Save and publish'));
$this
->goToContentBulkManagementForm();
// Clicking English must init the upload of content.
$this
->clickLink('EN');
// There is a link for checking status.
$this
->clickLink('EN');
// Request the Spanish translation.
$this
->clickLink('ES');
// Check status of the Spanish translation.
$this
->clickLink('ES');
// Download the Spanish translation.
$this
->clickLink('ES');
}