function ProfileTestBrowsing::testProfileBrowsing in Drupal 7
Test profile browsing.
File
- modules/
profile/ profile.test, line 481 - 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);
}