Verified Commit 502604fe authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3393072 by znerol: Ensure Unit tests in phpass run and remove unneeded...

Issue #3393072 by znerol: Ensure Unit tests in phpass run and remove unneeded LegacyPasswordHashingTest::testInvalidArguments

(cherry picked from commit 9d4f46c0)
parent 396dc994
Loading
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
<?php

namespace Drupal\Tests\phpass\Password;
namespace Drupal\Tests\phpass\Unit;

use Drupal\phpass\Password\PhpassHashedPassword;
use Drupal\Tests\UnitTestCase;
@@ -60,14 +60,6 @@ protected function setUp(): void {
    $this->md5HashedPassword = 'U' . $this->passwordHasher->hash(md5($this->password));
  }

  /**
   * Tests invalid constructor arguments.
   */
  public function testInvalidArguments() {
    $this->expectException(\InvalidArgumentException::class);
    new PhpassHashedPassword('not a number');
  }

  /**
   * Tests a password needs update.
   *
+1 −1
Original line number Diff line number Diff line
<?php

namespace Drupal\Tests\phpass\Password;
namespace Drupal\Tests\phpass\Unit;

use Drupal\phpass\Password\PhpassHashedPassword;
use Drupal\Core\Password\PasswordInterface;