You are here

public function WebformLocalizationStringSubmissionTestCase::setTranslationOptions in Webform Localization 7.4

Set options to use localization by string translation.

Enables localization by string translation and reuse the single webform across the translation set.

Overrides WebformLocalizationSubmissionTestCase::setTranslationOptions

File

tests/webform_localization.submission.test, line 196
This file contains test classes for testing localized webform submissions.

Class

WebformLocalizationStringSubmissionTestCase
Test Localized webform submission (String translation)

Code

public function setTranslationOptions() {
  $node = $this
    ->createWebformForm();
  $edit = array();
  $edit['expose_strings'] = 1;
  $edit['single_webform'] = 1;
  $this
    ->drupalPost('node/' . $node->nid . '/webform/configure', $edit, t('Save configuration'));
  $this
    ->assertRaw(t('The form settings have been updated.'), 'Webform string translation and single webform enabled.');
}