protected function LingotekTestBase::saveAsUnpublishedNodeForm in Lingotek Translation 3.3.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsUnpublishedNodeForm()
- 4.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsUnpublishedNodeForm()
- 3.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsUnpublishedNodeForm()
- 3.1.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsUnpublishedNodeForm()
- 3.2.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsUnpublishedNodeForm()
- 3.4.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsUnpublishedNodeForm()
- 3.5.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsUnpublishedNodeForm()
- 3.6.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsUnpublishedNodeForm()
- 3.7.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsUnpublishedNodeForm()
- 3.8.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::saveAsUnpublishedNodeForm()
1 call to LingotekTestBase::saveAsUnpublishedNodeForm()
- LingotekNodeTranslationDownloadStatusTest::createAndDownloadANodeTranslation in tests/
src/ Functional/ LingotekNodeTranslationDownloadStatusTest.php - Helper method for creating and downloading a translation.
File
- tests/
src/ Functional/ LingotekTestBase.php, line 319
Class
- LingotekTestBase
- Base class for Lingotek test. Performs authorization of the account.
Namespace
Drupal\Tests\lingotek\FunctionalCode
protected function saveAsUnpublishedNodeForm(array $edit, $bundle = 'article') {
$path = $bundle !== NULL ? "node/add/{$bundle}" : NULL;
$edit['status[value]'] = FALSE;
$this
->drupalPostForm($path, $edit, t('Save'));
}