You are here

protected function LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm 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::saveAndKeepPublishedThisTranslationNodeForm()
  2. 4.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
  3. 3.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
  4. 3.1.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
  5. 3.2.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
  6. 3.3.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
  7. 3.4.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
  8. 3.5.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
  9. 3.6.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
  10. 3.7.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
8 calls to LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
LingotekNodeBulkTranslationTest::testEditedNodeTranslationUsingLinks in tests/src/Functional/LingotekNodeBulkTranslationTest.php
Tests that a node can be translated using the links on the management page.
LingotekNodeBulkTranslationTest::testEditedNodeTranslationUsingLinksInAutomaticUploadsMode in tests/src/Functional/LingotekNodeBulkTranslationTest.php
Tests that a node can be translated using the links on the management page.
LingotekNodeBulkTranslationTest::testEditedTranslationIsMarkedAsTargetEditedAndNotTheSource in tests/src/Functional/LingotekNodeBulkTranslationTest.php
Tests that a node can be translated using the links on the management page.
LingotekNodeBulkTranslationTest::testNodeTranslationUsingActionsForMultipleLocalesAfterEditing in tests/src/Functional/LingotekNodeBulkTranslationTest.php
Tests that a node can be translated using the actions on the management page for multiple locales after editing it.
LingotekNodeBulkTranslationTest::testNodeTranslationUsingActionsForMultipleLocalesAfterEditingWithPendingPhases in tests/src/Functional/LingotekNodeBulkTranslationTest.php

... See full list

File

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

Class

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

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function saveAndKeepPublishedThisTranslationNodeForm(array $edit, $nid, $prefix = NULL) {
  $path = $nid !== NULL ? "node/{$nid}/edit" : NULL;
  if ($path !== NULL && $prefix !== NULL) {
    $path = $prefix . '/' . $path;
  }
  $edit['status[value]'] = TRUE;
  $this
    ->drupalPostForm($path, $edit, t('Save (this translation)'));
}