function TMGMTNodeSourceUITestCase::setUp in Translation Management Tool 7
Overrides DrupalWebTestCase::setUp()
Overrides TMGMTBaseTestCase::setUp
File
- sources/
node/ ui/ tmgmt_node_ui.test, line 16
Class
- TMGMTNodeSourceUITestCase
- Basic Node Source UI tests.
Code
function setUp() {
parent::setUp(array(
'tmgmt_node_ui',
'block',
));
// We need the administer blocks permission.
$this
->loginAsAdmin(array(
'administer blocks',
));
$this
->setEnvironment('de');
$this
->setEnvironment('fr');
$this
->setEnvironment('es');
$this
->setEnvironment('el');
// @todo Re-enable this when switching to testing profile.
// Enable the main page content block for hook_page_alter() to work.
$edit = array(
'blocks[system_main][region]' => 'content',
);
$this
->drupalPost('admin/structure/block', $edit, t('Save blocks'));
$this
->createNodeType('page', 'Page', TRANSLATION_ENABLED, FALSE);
}