You are here

protected function LingotekTestBase::saveAsRequestReviewNodeForm in Lingotek Translation 3.0.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsRequestReviewNodeForm()
  2. 4.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsRequestReviewNodeForm()
  3. 3.1.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsRequestReviewNodeForm()
  4. 3.2.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsRequestReviewNodeForm()
  5. 3.3.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsRequestReviewNodeForm()
  6. 3.4.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsRequestReviewNodeForm()
  7. 3.5.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsRequestReviewNodeForm()
  8. 3.6.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsRequestReviewNodeForm()
  9. 3.7.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsRequestReviewNodeForm()
  10. 3.8.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsRequestReviewNodeForm()
2 calls to LingotekTestBase::saveAsRequestReviewNodeForm()
LingotekContentModerationTest::testCreateEntityWithAutomaticProfileButNotInUploadState in tests/src/Functional/LingotekContentModerationTest.php
Tests creating an entity with automatic profile but not in upload state is not uploaded.
LingotekContentModerationTest::testCreateEntityWithManualProfileButNotInUploadState in tests/src/Functional/LingotekContentModerationTest.php
Tests creating an entity with manual profile but not in upload state is not uploaded.

File

tests/src/Functional/LingotekTestBase.php, line 320

Class

LingotekTestBase
Base class for Lingotek test. Performs authorization of the account.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function saveAsRequestReviewNodeForm(array $edit, $bundle = 'article') {
  $path = $bundle !== NULL ? "node/add/{$bundle}" : NULL;
  $edit['moderation_state[0][state]'] = 'needs_review';
  $this
    ->drupalPostForm($path, $edit, t('Save'));
}