You are here

function WebformLocalizationApiTestCase::setUp in Webform Localization 7.4

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

Set up test.

Overrides WebformLocalizationWebTestCase::setUp

File

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

Class

WebformLocalizationApiTestCase

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.');
}