From 22f0ba528f7b579868b793664cf9c7875b788fd1 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 28 Dec 2010 21:46:23 +0000 Subject: #1007504 by carlos8f, pioterw: Fixed Rehashed passwords after Drupal 6 upgrade fail --- modules/simpletest/tests/upgrade/upgrade.test | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/simpletest') diff --git a/modules/simpletest/tests/upgrade/upgrade.test b/modules/simpletest/tests/upgrade/upgrade.test index 0b48db507..263baff48 100644 --- a/modules/simpletest/tests/upgrade/upgrade.test +++ b/modules/simpletest/tests/upgrade/upgrade.test @@ -378,6 +378,15 @@ class BasicUpgradePath extends UpgradePathTestCase { 'pass_raw' => 'admin', )); + // The previous login should've triggered a password rehash, so login one + // more time to make sure the new hash is readable. + $this->drupalLogout(); + $this->drupalLogin((object) array( + 'uid' => 1, + 'name' => 'admin', + 'pass_raw' => 'admin', + )); + // Test that the site name is correctly displayed. $this->assertText('Drupal 6', t('The site name is correctly displayed.')); -- cgit v1.2.3