You are here

function WebformLocalizationStringTranslationTestCase::setUp in Webform Localization 7

Same name and namespace in other branches
  1. 7.4 tests/webform_localization.test \WebformLocalizationStringTranslationTestCase::setUp()

Set up test.

Overrides WebformLocalizationWebTestCase::setUp

File

tests/webform_localization.test, line 349
Webform localization module tests.

Class

WebformLocalizationStringTranslationTestCase

Code

function setUp($added_modules = array()) {
  parent::setUp($added_modules);

  // Set "Webform" content type to use multilingual support with translation.
  $this
    ->drupalGet('admin/structure/types/manage/webform');
  $edit = array();
  $edit['language_content_type'] = 2;
  $this
    ->drupalPost('admin/structure/types/manage/webform', $edit, t('Save content type'));
  $this
    ->assertRaw(t('The content type %type has been updated.', array(
    '%type' => 'Webform',
  )), 'Webform content type has been updated.');
}