You are here

protected function LingotekFieldBodyBulkDisassociateTest::createAndTranslateFieldWithLinks in Lingotek Translation 8

2 calls to LingotekFieldBodyBulkDisassociateTest::createAndTranslateFieldWithLinks()
LingotekFieldBodyBulkDisassociateTest::testFieldDisassociate in src/Tests/LingotekFieldBodyBulkDisassociateTest.php
Tests that a field config can be disassociated using the bulk operations on the management page.
LingotekFieldBodyBulkDisassociateTest::testFieldDisassociateWithRemovalOfRemoteDocument in src/Tests/LingotekFieldBodyBulkDisassociateTest.php
Tests that a field config can be disassociated using the bulk operations on the management page.

File

src/Tests/LingotekFieldBodyBulkDisassociateTest.php, line 116

Class

LingotekFieldBodyBulkDisassociateTest
Tests disassociating a field using the bulk management form.

Namespace

Drupal\lingotek\Tests

Code

protected function createAndTranslateFieldWithLinks() {

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

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

  // There is a link for checking status.
  $this
    ->clickLink('EN');
  $this
    ->assertText('Body 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');
}