public function MediaWYSIWYGMacroTestHelper::setUp in D7 Media 7.4
Same name and namespace in other branches
- 7.2 modules/media_wysiwyg/tests/media_wysiwyg.macro.test \MediaWYSIWYGMacroTestHelper::setUp()
- 7.3 modules/media_wysiwyg/tests/media_wysiwyg.macro.test \MediaWYSIWYGMacroTestHelper::setUp()
Common setup routines for rendered media macros.
Overrides MediaWYSIWYGTestHelper::setUp
File
- modules/
media_wysiwyg/ tests/ media_wysiwyg.macro.test, line 16 - Tests for ensuring media macros render properly.
Class
- MediaWYSIWYGMacroTestHelper
- Base class for testing rendered wysiwyg macros.
Code
public function setUp() {
parent::setUp(array(
'field_ui',
'token',
));
// Create and log in a user.
$this->admin_user = $this
->drupalCreateUser(array(
'administer file types',
'administer fields',
'administer filters',
'create article content',
'use text format filtered_html',
));
$this
->drupalLogin($this->admin_user);
// Enable the media filter for full html.
$edit = array(
'filters[media_filter][status]' => TRUE,
'filters[filter_html][status]' => FALSE,
);
$this
->drupalPost('admin/config/content/formats/filtered_html', $edit, t('Save configuration'));
}