public function FeedsMapperFieldTestCase::setUp in Entity reference 7
Set-up function.
Overrides DrupalWebTestCase::setUp
File
- tests/
entityreference.feeds.test, line 27 - Test case for simple CCK field mapper mappers/content.inc.
Class
- FeedsMapperFieldTestCase
- Class for testing Feeds field mapper.
Code
public function setUp() {
parent::setUp();
module_enable(array(
'entityreference_feeds_test',
), TRUE);
$this
->resetAll();
$permissions[] = 'access content';
$permissions[] = 'administer site configuration';
$permissions[] = 'administer content types';
$permissions[] = 'administer nodes';
$permissions[] = 'bypass node access';
$permissions[] = 'administer taxonomy';
$permissions[] = 'administer users';
$permissions[] = 'administer feeds';
// Create an admin user and log in.
$this->admin_user = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($this->admin_user);
}