You are here

public function RelationAddTestCase::setUp in Relation add 7

Setup.

Overrides RelationTestCase::setUp

File

tests/relation_add.test, line 30
Tests for Relation Add module.

Class

RelationAddTestCase
Tests Relation Add.

Code

public function setUp() {
  $this->sleep = TRUE;
  parent::setUp('relation_add');

  // Add node edit role.
  $roles = $this->web_user->roles;
  $role = array_shift($roles);
  $permissions = array(
    'administer nodes',
    'bypass node access',
  );
  user_role_grant_permissions($role, $permissions);
  $this
    ->createRelationAddFieldWithInstance('node', 'article', 'reladd', array(
    'symmetric' => 'symmetric',
  ));
}