function ProfileTestBrowsing::testProfileBrowsing
Test profile browsing.
Archivo
- drupal-7.x/
modules/ profile/ profile.test, line 471 - Tests for profile.module.
Class
- ProfileTestBrowsing
- Test profile browsing.
Código
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);
}