You are here

protected function LingotekNodeBulkCancelTest::createAndTranslateNodeWithLinks in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekNodeBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkCancelTest::createAndTranslateNodeWithLinks()
  2. 4.0.x tests/src/Functional/LingotekNodeBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkCancelTest::createAndTranslateNodeWithLinks()
  3. 3.0.x tests/src/Functional/LingotekNodeBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkCancelTest::createAndTranslateNodeWithLinks()
  4. 3.1.x tests/src/Functional/LingotekNodeBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkCancelTest::createAndTranslateNodeWithLinks()
  5. 3.2.x tests/src/Functional/LingotekNodeBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkCancelTest::createAndTranslateNodeWithLinks()
  6. 3.3.x tests/src/Functional/LingotekNodeBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkCancelTest::createAndTranslateNodeWithLinks()
  7. 3.5.x tests/src/Functional/LingotekNodeBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkCancelTest::createAndTranslateNodeWithLinks()
  8. 3.6.x tests/src/Functional/LingotekNodeBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkCancelTest::createAndTranslateNodeWithLinks()
  9. 3.7.x tests/src/Functional/LingotekNodeBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkCancelTest::createAndTranslateNodeWithLinks()
  10. 3.8.x tests/src/Functional/LingotekNodeBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkCancelTest::createAndTranslateNodeWithLinks()
2 calls to LingotekNodeBulkCancelTest::createAndTranslateNodeWithLinks()
LingotekNodeBulkCancelTest::testNodeCancel in tests/src/Functional/LingotekNodeBulkCancelTest.php
Tests that a node can be cancelled using the actions on the management page.
LingotekNodeBulkCancelTest::testNodeCancelTarget in tests/src/Functional/LingotekNodeBulkCancelTest.php
Tests that a node target can be cancelled using the actions on the management page.

File

tests/src/Functional/LingotekNodeBulkCancelTest.php, line 153

Class

LingotekNodeBulkCancelTest
Tests translating a node using the bulk management form.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function createAndTranslateNodeWithLinks() {
  $this
    ->goToContentBulkManagementForm();

  // Clicking English must init the upload of content.
  $this
    ->clickLink('EN');
  $this
    ->assertText('Node Llamas are cool has been uploaded.');

  // There is a link for checking status.
  $this
    ->clickLink('EN');
  $this
    ->assertText('The import for node Llamas are cool is complete.');

  // Request the Spanish translation.
  $this
    ->clickLink('ES');
  $this
    ->assertText("Locale 'es_ES' was added as a translation target for node Llamas are cool.");

  // Check status of the Spanish translation.
  $this
    ->clickLink('ES');
  $this
    ->assertText('The es_ES translation for node Llamas are cool is ready for download.');

  // Download the Spanish translation.
  $this
    ->clickLink('ES');
  $this
    ->assertText('The translation of node Llamas are cool into es_ES has been downloaded.');
}