You are here

protected function LingotekTestBase::saveAsNewDraftNodeForm in Lingotek Translation 3.8.x

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

... See full list

File

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

Class

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

Namespace

Drupal\Tests\lingotek\Functional

Code

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