public function MediaFeedsMapperEnclosureTestCase::setUp in Media Feeds 7
Login and set up the required modules.
File
- tests/
media_feeds_mapper_enclosure.test, line 30 - Test case for the Feeds mapping API for the media module using SimplePieParser and FeedsEncolsure.
Class
- MediaFeedsMapperEnclosureTestCase
- Class for testing the Media Feeds media_internet mapper using FeedsEnclosure.
Code
public function setUp() {
// Enable modules.
parent::setUp(array(
'media_feeds',
'feeds_tests',
));
// Login user with appropriate permissions.
$this
->drupalLogin($this
->drupalCreateUser(array(
'administer content types',
'administer feeds',
'access content',
'add media from remote sources',
'import media',
'view media',
'edit media',
'bypass node access',
)));
}