diff --git a/core/modules/system/lib/Drupal/system/Tests/System/ScriptTest.php b/core/modules/system/lib/Drupal/system/Tests/System/ScriptTest.php index 3acae8c..ebd8ada 100644 --- a/core/modules/system/lib/Drupal/system/Tests/System/ScriptTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/System/ScriptTest.php @@ -31,11 +31,11 @@ public static function getInfo() { */ public function testPasswordHashSh() { $_SERVER['argv'] = array( - 'core/scripts/password-hash.php', + 'core/scripts/password-hash.sh', 'xyz', ); ob_start(); - include DRUPAL_ROOT . '/core/scripts/password-hash.php'; + include DRUPAL_ROOT . '/core/scripts/password-hash.sh'; $this->content = ob_get_contents(); ob_end_clean(); $this->assertRaw('hash: $S$'); @@ -46,10 +46,10 @@ public function testPasswordHashSh() { */ public function testRebuildTokenCalculatorSh() { $_SERVER['argv'] = array( - 'core/scripts/rebuild-token.php', + 'core/scripts/rebuild-token.sh', ); ob_start(); - include DRUPAL_ROOT . '/core/scripts/rebuild-token.php'; + include DRUPAL_ROOT . '/core/scripts/rebuild-token.sh'; $this->content = ob_get_contents(); ob_end_clean(); $this->assertRaw('token='); diff --git a/core/scripts/password-hash.php b/core/scripts/password-hash.sh similarity index 99% rename from core/scripts/password-hash.php rename to core/scripts/password-hash.sh index 675becb..f80d75c 100755 --- a/core/scripts/password-hash.php +++ b/core/scripts/password-hash.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env php