You are here

public function UserUpgradePathNoPasswordTokenTestCase::testUserUpgrade in Drupal 7

Test a successful upgrade.

File

modules/simpletest/tests/upgrade/upgrade.user.test, line 59

Class

UserUpgradePathNoPasswordTokenTestCase
Upgrade test for user.module (password token not involved).

Code

public function testUserUpgrade() {
  $this
    ->assertTrue($this
    ->performUpgrade(), 'The upgrade was completed successfully.');
  $this
    ->assertEqual(variable_get('user_mail_register_no_approval_required_body'), '[user:name], [site:name], [site:url], [site:url-brief], [user:mail], [date:medium], [site:login-url], [user:edit-url], [user:one-time-login-url].', 'Existing email templates have been modified (password token not involved).');
}