function UserAuthTest::testAuthenticateWithMissingCredentials
Tests failing authentication with missing credential parameters.
@legacy-covers ::authenticate
Attributes
#[DataProvider('providerTestAuthenticateWithMissingCredentials')]
File
-
core/
modules/ user/ tests/ src/ Unit/ UserAuthTest.php, line 101
Class
- UserAuthTest
- Tests Drupal\user\UserAuth.
Namespace
Drupal\Tests\user\UnitCode
public function testAuthenticateWithMissingCredentials($username, $password) : void {
$this->userStorage
->expects($this->never())
->method('loadByProperties');
$this->assertFalse($this->userAuth
->authenticate($username, $password));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.