You are here

protected function LingotekTestBase::editAsNewDraftNodeForm 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::editAsNewDraftNodeForm()
  2. 4.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::editAsNewDraftNodeForm()
  3. 3.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::editAsNewDraftNodeForm()
  4. 3.1.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::editAsNewDraftNodeForm()
  5. 3.2.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::editAsNewDraftNodeForm()
  6. 3.3.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::editAsNewDraftNodeForm()
  7. 3.4.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::editAsNewDraftNodeForm()
  8. 3.5.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::editAsNewDraftNodeForm()
  9. 3.6.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::editAsNewDraftNodeForm()
  10. 3.7.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::editAsNewDraftNodeForm()
6 calls to LingotekTestBase::editAsNewDraftNodeForm()
LingotekContentModerationTest::testBulkManagementUploadsLatestDraftRevision in tests/src/Functional/LingotekContentModerationTest.php
LingotekContentModerationTest::testDraftRevisionDownloadDoesntOverwriteDraftNonDefaultRevision in tests/src/Functional/LingotekContentModerationTest.php
LingotekContentModerationTest::testPublishedRevisionDownloadDoesntOverwriteDraftNonDefaultRevision in tests/src/Functional/LingotekContentModerationTest.php
LingotekContentModerationTest::testPublishedRevisionMultipleDownloadsDoesntOverwriteDraftNonDefaultRevision in tests/src/Functional/LingotekContentModerationTest.php
LingotekContentModerationTest::testUpdateEntityWithAutomaticProfileAndInUploadState in tests/src/Functional/LingotekContentModerationTest.php
Tests updating an entity with automatic profile and in upload state is uploaded.

... See full list

File

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

Class

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

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function editAsNewDraftNodeForm($path, array $edit) {
  $edit['moderation_state[0][state]'] = 'draft';
  $this
    ->drupalPostForm($path, $edit, t('Save'));
}