You are here

public function LingotekUtilitiesDisassociateAllDocumentsTest::translateSystemSiteConfig in Lingotek Translation 8

1 call to LingotekUtilitiesDisassociateAllDocumentsTest::translateSystemSiteConfig()
LingotekUtilitiesDisassociateAllDocumentsTest::setUp in src/Tests/LingotekUtilitiesDisassociateAllDocumentsTest.php
Sets up a Drupal site for running functional and integration tests.

File

src/Tests/LingotekUtilitiesDisassociateAllDocumentsTest.php, line 142

Class

LingotekUtilitiesDisassociateAllDocumentsTest
Tests disassociating all site documents.

Namespace

Drupal\lingotek\Tests

Code

public function translateSystemSiteConfig() {

  // This is a hack for avoiding writing different lingotek endpoint mocks.
  \Drupal::state()
    ->set('lingotek.uploaded_content_type', 'system.site');

  // Go to the bulk config management page.
  $this
    ->goToConfigBulkManagementForm();

  // Clicking English must init the upload of content.
  $this
    ->clickLink('EN', 1);

  // There is a link for checking status.
  $this
    ->clickLink('EN', 1);

  // Request the Spanish translation.
  $this
    ->clickLink('ES');

  // Check status of the Spanish translation.
  $this
    ->clickLink('ES');

  // Download the Chinese translation.
  $this
    ->clickLink('ES');
}