function TMGMTBaseTestCase::setUp in Translation Management Tool 7
Overrides DrupalWebTestCase::setUp()
Overrides DrupalWebTestCase::setUp
16 calls to TMGMTBaseTestCase::setUp()
- TMGMTEntitySourceLanguageNoneTestCase::setUp in sources/
entity/ tmgmt_entity.source.none.test - Overrides DrupalWebTestCase::setUp()
- TMGMTEntitySourceListTestCase::setUp in sources/
entity/ ui/ tmgmt_entity_ui.list.test - Overrides DrupalWebTestCase::setUp()
- TMGMTEntitySourcePathAutoTestCase::setUp in sources/
entity/ tmgmt_entity.pathauto.test - Overrides DrupalWebTestCase::setUp()
- TMGMTEntitySourceTestCase::setUp in sources/
entity/ tmgmt_entity.source.test - Overrides DrupalWebTestCase::setUp()
- TMGMTEntitySourceUITestCase::setUp in sources/
entity/ ui/ tmgmt_entity_ui.test - Overrides DrupalWebTestCase::setUp()
17 methods override TMGMTBaseTestCase::setUp()
- TMGMTEntitySourceLanguageNoneTestCase::setUp in sources/
entity/ tmgmt_entity.source.none.test - Overrides DrupalWebTestCase::setUp()
- TMGMTEntitySourceListTestCase::setUp in sources/
entity/ ui/ tmgmt_entity_ui.list.test - Overrides DrupalWebTestCase::setUp()
- TMGMTEntitySourcePathAutoTestCase::setUp in sources/
entity/ tmgmt_entity.pathauto.test - Overrides DrupalWebTestCase::setUp()
- TMGMTEntitySourceTestCase::setUp in sources/
entity/ tmgmt_entity.source.test - Overrides DrupalWebTestCase::setUp()
- TMGMTEntitySourceUITestCase::setUp in sources/
entity/ ui/ tmgmt_entity_ui.test - Overrides DrupalWebTestCase::setUp()
File
- tests/
tmgmt.base.test, line 52
Class
- TMGMTBaseTestCase
- Base class for tests.
Code
function setUp() {
$modules = func_get_args();
if (isset($modules[0]) && is_array($modules[0])) {
$modules = $modules[0];
}
$modules = array_merge(array(
'entity',
'tmgmt',
'tmgmt_test',
), $modules);
parent::setUp($modules);
$this->default_translator = tmgmt_translator_load('test_translator');
// Load default admin permissions.
$this->admin_permissions = array(
'administer languages',
'access administration pages',
'administer content types',
'administer tmgmt',
);
// Load default translator user permissions.
$this->translator_permissions = array(
'create translation jobs',
'submit translation jobs',
'accept translation jobs',
);
}