You are here

public function WebformLocalizationSyncSubmissionTestCase::setTranslationOptions in Webform Localization 7.4

Enables localization by sync: sync components, roles and emails.

Overrides WebformLocalizationSubmissionTestCase::setTranslationOptions

File

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

Class

WebformLocalizationSyncSubmissionTestCase
Localized webform submission (Localization by Sync)

Code

public function setTranslationOptions() {
  $node = $this
    ->createWebformForm();
  $edit = array();
  $edit['sync_components'] = 1;
  $edit['sync_roles'] = 1;
  $edit['sync_emails'] = 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.');
}