You are here

public function LingotekWorkbenchModerationTest::testModerationToUploadStateWithManualProfileDoesntTriggerUpload in Lingotek Translation 3.8.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testModerationToUploadStateWithManualProfileDoesntTriggerUpload()
  2. 4.0.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testModerationToUploadStateWithManualProfileDoesntTriggerUpload()
  3. 3.1.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testModerationToUploadStateWithManualProfileDoesntTriggerUpload()
  4. 3.2.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testModerationToUploadStateWithManualProfileDoesntTriggerUpload()
  5. 3.3.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testModerationToUploadStateWithManualProfileDoesntTriggerUpload()
  6. 3.4.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testModerationToUploadStateWithManualProfileDoesntTriggerUpload()
  7. 3.5.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testModerationToUploadStateWithManualProfileDoesntTriggerUpload()
  8. 3.6.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testModerationToUploadStateWithManualProfileDoesntTriggerUpload()
  9. 3.7.x tests/src/Functional/LingotekWorkbenchModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekWorkbenchModerationTest::testModerationToUploadStateWithManualProfileDoesntTriggerUpload()

Entity moderation with manual profile to upload state does not upload.

File

tests/src/Functional/LingotekWorkbenchModerationTest.php, line 301

Class

LingotekWorkbenchModerationTest
Tests setting up the integration with workbench moderation.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testModerationToUploadStateWithManualProfileDoesntTriggerUpload() {
  $this
    ->configureNeedsReviewAsUploadState();
  $edit = [];
  $edit['title[0][value]'] = 'Llamas are cool';
  $edit['body[0][value]'] = 'Llamas are very cool';
  $edit['langcode[0][value]'] = 'en';
  $edit['lingotek_translation_management[lingotek_translation_profile]'] = 'manual';
  $this
    ->drupalPostForm('/node/add/article', $edit, t('Save and Create New Draft'));

  // Moderate.
  $edit = [
    'new_state' => 'needs_review',
  ];
  $this
    ->drupalPostForm(NULL, $edit, 'Apply');
  $this
    ->assertText('The moderation state has been updated.');
  $this
    ->assertNoText('Llamas are cool sent to Lingotek successfully.');
}