You are here

public function TMGMTSuggestionsTestCase::setUp in Translation Management Tool 7

Overrides DrupalWebTestCase::setUp()

Overrides TMGMTBaseTestCase::setUp

File

sources/entity/tmgmt_entity.suggestions.test, line 24

Class

TMGMTSuggestionsTestCase
Basic Source-Suggestions tests.

Code

public function setUp() {
  parent::setUp(array(
    'file_entity',
    'tmgmt_entity',
    'tmgmt_ui',
    'entityreference',
    'tmgmt_i18n_string',
    'i18n_menu',
  ));
  $this
    ->loginAsAdmin(array(
    'administer entity translation',
  ));
  $this
    ->setEnvironment('de');

  // Enable entity translations for nodes and comments.
  $edit = array();
  $edit['entity_translation_entity_types[node]'] = 1;
  $edit['entity_translation_entity_types[file]'] = 1;
  $this
    ->drupalPost('admin/config/regional/entity_translation', $edit, t('Save configuration'));
}