You are here

protected function LingotekContentModerationTest::configureNeedsReviewAsUploadState in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::configureNeedsReviewAsUploadState()
  2. 4.0.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::configureNeedsReviewAsUploadState()
  3. 3.0.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::configureNeedsReviewAsUploadState()
  4. 3.1.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::configureNeedsReviewAsUploadState()
  5. 3.2.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::configureNeedsReviewAsUploadState()
  6. 3.3.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::configureNeedsReviewAsUploadState()
  7. 3.5.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::configureNeedsReviewAsUploadState()
  8. 3.6.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::configureNeedsReviewAsUploadState()
  9. 3.7.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::configureNeedsReviewAsUploadState()
  10. 3.8.x tests/src/Functional/LingotekContentModerationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentModerationTest::configureNeedsReviewAsUploadState()
6 calls to LingotekContentModerationTest::configureNeedsReviewAsUploadState()
LingotekContentModerationTest::testDownloadFromNotUploadStateDoesntTriggerATransition in tests/src/Functional/LingotekContentModerationTest.php
LingotekContentModerationTest::testDownloadFromUploadStateTriggersATransition in tests/src/Functional/LingotekContentModerationTest.php
LingotekContentModerationTest::testModerationToNonUploadStateWithAutomaticProfileDoesntTriggerUpload in tests/src/Functional/LingotekContentModerationTest.php
LingotekContentModerationTest::testModerationToNonUploadStateWithManualProfileDoesntTriggerUpload in tests/src/Functional/LingotekContentModerationTest.php
LingotekContentModerationTest::testModerationToUploadStateWithAutomaticProfileTriggersUpload in tests/src/Functional/LingotekContentModerationTest.php

... See full list

File

tests/src/Functional/LingotekContentModerationTest.php, line 226

Class

LingotekContentModerationTest
Tests setting up the integration with content moderation.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function configureNeedsReviewAsUploadState() {
  $this
    ->saveLingotekContentTranslationSettings([
    'node' => [
      'article' => [
        'profiles' => 'automatic',
        'fields' => [
          'title' => 1,
          'body' => 1,
        ],
        'moderation' => [
          'upload_status' => 'needs_review',
          'download_transition' => 'publish',
        ],
      ],
    ],
  ]);
}