You are here

protected function LingotekContentTypeBulkDisassociateTest::createAndTranslateContentTypeWithLinks in Lingotek Translation 8

2 calls to LingotekContentTypeBulkDisassociateTest::createAndTranslateContentTypeWithLinks()
LingotekContentTypeBulkDisassociateTest::testContentTypeDisassociate in src/Tests/LingotekContentTypeBulkDisassociateTest.php
Tests that a config entity can be disassociated using the bulk operations on the management page.
LingotekContentTypeBulkDisassociateTest::testContentTypeDisassociateWithRemovalOfRemoteDocument in src/Tests/LingotekContentTypeBulkDisassociateTest.php
Tests that a config entity can be disassociated using the bulk operations on the management page.

File

src/Tests/LingotekContentTypeBulkDisassociateTest.php, line 116

Class

LingotekContentTypeBulkDisassociateTest
Tests translating config using the bulk management form.

Namespace

Drupal\lingotek\Tests

Code

protected function createAndTranslateContentTypeWithLinks() {

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

  // Clicking English must init the upload of content.
  $this
    ->clickLink('EN');
  $this
    ->assertText(t('Article uploaded successfully'));

  // There is a link for checking status.
  $this
    ->clickLink('EN');
  $this
    ->assertText('Article status checked successfully');

  // Request the Spanish translation.
  $this
    ->clickLink('ES');
  $this
    ->assertText("Translation to es_ES requested successfully");

  // Check status of the Spanish translation.
  $this
    ->clickLink('ES');
  $this
    ->assertText("Translation to es_ES status checked successfully");

  // Download the Spanish translation.
  $this
    ->clickLink('ES');
  $this
    ->assertText('Translation to es_ES downloaded successfully');
}