public function WebformLocalizationSubmissionTestCase::setUp in Webform Localization 7.4
Implements setUp().
Overrides WebformLocalizationWebTestCase::setUp
File
- tests/
webform_localization.submission.test, line 32 - This file contains test classes for testing localized webform submissions.
Class
- WebformLocalizationSubmissionTestCase
- Abstract class that defines the actual tests.
Code
public function setUp($modules = array()) {
parent::setUp($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.');
}