Tests editing of a user account without an e-mail address.
function testUserWithoutEmailEdit() {
// Test that an admin can edit users without an e-mail address.
$admin = $this
->drupalCreateUser(array(
'administer users',
));
$this
->drupalLogin($admin);
// Create a regular user.
$user1 = $this
->drupalCreateUser(array());
// This user has no e-mail address.
$user1->mail = '';
$user1
->save();
$this
->drupalPost("user/{$user1->uid}/edit", array(
'mail' => '',
), t('Save'));
$this
->assertRaw(t("The changes have been saved."));
}