You are here

protected function LingotekUtilitiesDisassociateAllDocumentsTest::createAndCancelANode in Lingotek Translation 3.7.x

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

File

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

Class

LingotekUtilitiesDisassociateAllDocumentsTest
Tests disassociating all site documents.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function createAndCancelANode() {

  // Create a node.
  $edit = [];
  $edit['title[0][value]'] = 'Dogs are cool';
  $edit['body[0][value]'] = 'Dogs are very cool';
  $edit['langcode[0][value]'] = 'en';
  $edit['lingotek_translation_management[lingotek_translation_profile]'] = 'automatic';
  $this
    ->saveAndPublishNodeForm($edit);
  $this
    ->goToContentBulkManagementForm('node');
  $edit = [
    'table[2]' => TRUE,
    $this
      ->getBulkOperationFormName() => $this
      ->getBulkOperationNameForCancel('node'),
  ];
  $this
    ->submitForm($edit, $this
    ->getApplyActionsButtonLabel());
}