You are here

protected function LingotekWorkbenchModerationTest::configureNeedsReviewAsUploadState in Lingotek Translation 3.7.x

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

Configures "Needs review" as upload state, and "Publish" as the transition.

6 calls to LingotekWorkbenchModerationTest::configureNeedsReviewAsUploadState()
LingotekWorkbenchModerationTest::testDownloadFromNotUploadStateDoesntTriggerATransition in tests/src/Functional/LingotekWorkbenchModerationTest.php
Download from different state doesn't trigger a transition.
LingotekWorkbenchModerationTest::testDownloadFromUploadStateTriggersATransition in tests/src/Functional/LingotekWorkbenchModerationTest.php
Download from upload state triggers a transition.
LingotekWorkbenchModerationTest::testModerationToNonUploadStateWithAutomaticProfileDoesntTriggerUpload in tests/src/Functional/LingotekWorkbenchModerationTest.php
Entity moderation with automatic profile to other state does not upload.
LingotekWorkbenchModerationTest::testModerationToNonUploadStateWithManualProfileDoesntTriggerUpload in tests/src/Functional/LingotekWorkbenchModerationTest.php
Entity moderation with manual profile to other state does not upload.
LingotekWorkbenchModerationTest::testModerationToUploadStateWithAutomaticProfileTriggersUpload in tests/src/Functional/LingotekWorkbenchModerationTest.php
Entity moderation with automatic profile to upload state triggers upload.

... See full list

File

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

Class

LingotekWorkbenchModerationTest
Tests setting up the integration with workbench moderation.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function configureNeedsReviewAsUploadState() {
  $edit = [
    'node[article][enabled]' => 1,
    'node[article][profiles]' => 'automatic',
    'node[article][fields][title]' => 1,
    'node[article][fields][body]' => 1,
    'node[article][moderation][upload_status]' => 'needs_review',
    'node[article][moderation][download_transition]' => 'needs_review_published',
  ];
  $this
    ->drupalPostForm('admin/lingotek/settings', $edit, 'Save', [], 'lingoteksettings-tab-content-form');
}