You are here

public function SalesforceMappingTestCase::setUp in Salesforce Suite 7.3

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

2 calls to SalesforceMappingTestCase::setUp()
SalesforceMappingEntitiesTestCase::setUp in modules/salesforce_mapping/tests/salesforce_mapping.entities.test
Implementation of setUp().
SalesforceMappingMapTestCase::setUp in modules/salesforce_mapping/tests/salesforce_mapping.map.test
Implementation of setUp().
2 methods override SalesforceMappingTestCase::setUp()
SalesforceMappingEntitiesTestCase::setUp in modules/salesforce_mapping/tests/salesforce_mapping.entities.test
Implementation of setUp().
SalesforceMappingMapTestCase::setUp in modules/salesforce_mapping/tests/salesforce_mapping.map.test
Implementation of setUp().

File

modules/salesforce_mapping/tests/salesforce_mapping.test, line 22

Class

SalesforceMappingTestCase
Sets up basic tools for the testing of mapping Drupal to Salesforce.

Code

public function setUp($modules = array(), $permissions = array()) {
  $modules = array_merge($modules, array(
    'entity',
    'salesforce',
    'salesforce_mapping',
  ));
  parent::setUp($modules);
  $permissions = array_merge($permissions, array(
    'administer salesforce',
    'administer salesforce mapping',
    'view salesforce mapping object',
  ));
  $this->admin_user = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($this->admin_user);
}