You are here

public function UcAddressesFeedsTest::setUp in Ubercart Addresses 7

Setup.

Overrides UcAddressesTestCase::setUp

File

tests/uc_addresses.feeds.test, line 27
Test for Feeds integration.

Class

UcAddressesFeedsTest
Test aggregating a feed as address records.

Code

public function setUp() {
  parent::setUp();
  module_enable(array(
    'feeds',
    'feeds_ui',
  ));

  // Reset/rebuild all data structures after enabling the modules.
  $this
    ->resetAll();

  // Create an admin user and log in.
  $permissions = array(
    'access content',
    'add/edit all addresses',
    'delete all addresses',
    'administer users',
    'administer feeds',
  );
  $adminUser = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($adminUser);
}