public function LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType in Lingotek Translation 8
1 call to LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType()
- LingotekUtilitiesDisassociateAllDocumentsTest::setUp in src/
Tests/ LingotekUtilitiesDisassociateAllDocumentsTest.php - Sets up a Drupal site for running functional and integration tests.
File
- src/
Tests/ LingotekUtilitiesDisassociateAllDocumentsTest.php, line 160
Class
- LingotekUtilitiesDisassociateAllDocumentsTest
- Tests disassociating all site documents.
Namespace
Drupal\lingotek\TestsCode
public function translateArticleContentType() {
// This is a hack for avoiding writing different lingotek endpoint mocks.
\Drupal::state()
->set('lingotek.uploaded_content_type', 'content_type');
// Go to the bulk config management page.
$this
->goToConfigBulkManagementForm('node_type');
// 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');
}