function WebformLocalizationStringTranslationTestCase::setUp in Webform Localization 7.4
Same name and namespace in other branches
- 7 tests/webform_localization.test \WebformLocalizationStringTranslationTestCase::setUp()
Set up test.
Overrides WebformLocalizationWebTestCase::setUp
1 call to WebformLocalizationStringTranslationTestCase::setUp()
- WebformLocalizationStringTranslationTokenTestCase::setUp in tests/
webform_localization.test - Set up test.
1 method overrides WebformLocalizationStringTranslationTestCase::setUp()
- WebformLocalizationStringTranslationTokenTestCase::setUp in tests/
webform_localization.test - Set up test.
File
- tests/
webform_localization.test, line 322 - Webform localization module tests.
Class
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.');
}