function MediaWYSIWYGViewModeTestHelper::setUp in D7 Media 7.3
Same name and namespace in other branches
- 7.4 modules/media_wysiwyg/media_wysiwyg.test \MediaWYSIWYGViewModeTestHelper::setUp()
- 7.2 modules/media_wysiwyg/media_wysiwyg.test \MediaWYSIWYGViewModeTestHelper::setUp()
Enable media and file entity modules for testing.
Overrides MediaWYSIWYGTestHelper::setUp
1 call to MediaWYSIWYGViewModeTestHelper::setUp()
- FormatFormViewModesTest::setUp in modules/
media_wysiwyg/ media_wysiwyg.test - Enable media and file entity modules for testing.
1 method overrides MediaWYSIWYGViewModeTestHelper::setUp()
- FormatFormViewModesTest::setUp in modules/
media_wysiwyg/ media_wysiwyg.test - Enable media and file entity modules for testing.
File
- modules/
media_wysiwyg/ media_wysiwyg.test, line 109 - Tests for media.module.
Class
- MediaWYSIWYGViewModeTestHelper
- Defines base class for media_wysiwyg_view_mode test cases.
Code
function setUp() {
parent::setUp();
$web_user = $this
->drupalCreateUser(array(
'access administration pages',
'administer file types',
'view files',
'use media wysiwyg',
));
$this
->drupalLogin($web_user);
}