function ProfileTestBrowsing::testProfileBrowsing

Test profile browsing.

File

modules/profile/profile.test, line 487

Class

ProfileTestBrowsing
Test profile browsing.

Code

function testProfileBrowsing() {
  $this->drupalLogin($this->admin_user);
  $field = $this->createProfileField('list', 'simpletest', array(
    'page' => '%value',
  ));
  // Set a random value for the profile field.
  $value = $this->setProfileField($field);
  // Check that user is found on the profile browse page.
  $this->drupalGet("profile/{$field['form_name']}/{$value}");
  $this->assertText($this->normal_user->name);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.