public function MediaFileUsageTest::setUp in D7 Media 7
Enable media and file entity modules for testing.
Overrides DrupalWebTestCase::setUp
File
- test/
media.file.usage.test, line 23 - Tests for the file usage in entity fields with the Media filter markup.
Class
- MediaFileUsageTest
- @file Tests for the file usage in entity fields with the Media filter markup.
Code
public function setUp() {
parent::setUp(array(
'media',
'file_entity',
));
// Create and log in a user.
$account = $this
->drupalCreateUser(array(
'administer nodes',
'create article content',
));
$this
->drupalLogin($account);
}