function PhpPasswordTest::testEmptyHash
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Password/PhpPasswordTest.php \Drupal\Tests\Core\Password\PhpPasswordTest::testEmptyHash()
Tests password check in case provided hash is NULL.
@covers ::check
File
-
core/
tests/ Drupal/ Tests/ Core/ Password/ PhpPasswordTest.php, line 134
Class
- PhpPasswordTest
- Unit tests for password hashing API.
Namespace
Drupal\Tests\Core\PasswordCode
public function testEmptyHash() : void {
$this->assertFalse($this->passwordHasher
->check($this->password, NULL));
$this->assertFalse($this->passwordHasher
->check($this->password, ''));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.