You are here

public function LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType in Lingotek Translation 3.6.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekUtilitiesDisassociateAllDocumentsTest.php \Drupal\Tests\lingotek\Functional\LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType()
  2. 4.0.x tests/src/Functional/LingotekUtilitiesDisassociateAllDocumentsTest.php \Drupal\Tests\lingotek\Functional\LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType()
  3. 3.0.x tests/src/Functional/LingotekUtilitiesDisassociateAllDocumentsTest.php \Drupal\Tests\lingotek\Functional\LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType()
  4. 3.1.x tests/src/Functional/LingotekUtilitiesDisassociateAllDocumentsTest.php \Drupal\Tests\lingotek\Functional\LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType()
  5. 3.2.x tests/src/Functional/LingotekUtilitiesDisassociateAllDocumentsTest.php \Drupal\Tests\lingotek\Functional\LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType()
  6. 3.3.x tests/src/Functional/LingotekUtilitiesDisassociateAllDocumentsTest.php \Drupal\Tests\lingotek\Functional\LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType()
  7. 3.4.x tests/src/Functional/LingotekUtilitiesDisassociateAllDocumentsTest.php \Drupal\Tests\lingotek\Functional\LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType()
  8. 3.5.x tests/src/Functional/LingotekUtilitiesDisassociateAllDocumentsTest.php \Drupal\Tests\lingotek\Functional\LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType()
  9. 3.7.x tests/src/Functional/LingotekUtilitiesDisassociateAllDocumentsTest.php \Drupal\Tests\lingotek\Functional\LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType()
  10. 3.8.x tests/src/Functional/LingotekUtilitiesDisassociateAllDocumentsTest.php \Drupal\Tests\lingotek\Functional\LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType()
1 call to LingotekUtilitiesDisassociateAllDocumentsTest::translateArticleContentType()
LingotekUtilitiesDisassociateAllDocumentsTest::setUp in tests/src/Functional/LingotekUtilitiesDisassociateAllDocumentsTest.php

File

tests/src/Functional/LingotekUtilitiesDisassociateAllDocumentsTest.php, line 165

Class

LingotekUtilitiesDisassociateAllDocumentsTest
Tests disassociating all site documents.

Namespace

Drupal\Tests\lingotek\Functional

Code

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');
}