/**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->admin_user = $this->drupalCreateUser(array('administer entity_test content', 'administer xmlsitemap'));
     // allow anonymous user to view entity
     $user_role = entity_load('user_role', DRUPAL_ANONYMOUS_RID);
     $user_role->grantPermission('view test entity');
     $user_role->save();
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->admin_user = $this->drupalCreateUser(array('administer xmlsitemap', 'access administration pages', 'access site reports', 'administer users', 'administer permissions'));
     $this->drupalPlaceBlock('system_help_block', array('region' => 'help'));
     // allow anonymous user to view user profiles
     $user_role = entity_load('user_role', DRUPAL_ANONYMOUS_RID);
     $user_role->grantPermission('access user profiles');
     $user_role->save();
 }
 /**
  * {@inheritdoc}
  */
 public function setUp($modules = array())
 {
     parent::setUp();
     // allow anonymous user to view user profiles
     $user_role = entity_load('user_role', DRUPAL_ANONYMOUS_RID);
     $user_role->grantPermission('access user profiles');
     $user_role->save();
     xmlsitemap_link_bundle_enable('user', 'user');
     // Create the users
     $this->admin_user = $this->drupalCreateUser(array('administer users', 'administer permissions', 'administer xmlsitemap'));
     $this->normal_user = $this->drupalCreateUser(array('access content'));
     // Update the normal user to make its sitemap link visible.
     $account = clone $this->normal_user;
     $account->save();
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->admin_user = $this->drupalCreateUser(array('access content', 'administer site configuration', 'administer xmlsitemap', 'access administration pages', 'access site reports', 'administer permissions', 'view the administration theme'));
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->admin_user = $this->drupalCreateUser(array('access content', 'administer site configuration', 'administer xmlsitemap'));
 }