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