protected function LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm in Lingotek Translation 3.1.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
- 4.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
- 3.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
- 3.2.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
- 3.3.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
- 3.4.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
- 3.5.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
- 3.6.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
- 3.7.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAndKeepPublishedThisTranslationNodeForm()
- 3.8.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
File
- tests/
src/ Functional/ LingotekTestBase.php, line 362
Class
- LingotekTestBase
- Base class for Lingotek test. Performs authorization of the account.
Namespace
Drupal\Tests\lingotek\FunctionalCode
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)'));
}