public function TestAuthenticationProvider::authenticate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Authentication/AuthenticationCollectorTest.php \Drupal\Tests\Core\Authentication\TestAuthenticationProvider::authenticate()
Authenticates the user.
Parameters
\Symfony\Component\HttpFoundation\Request|NULL $request: The request object.
Return value
\Drupal\Core\Session\AccountInterface|NULL AccountInterface - in case of a successful authentication. NULL - in case where authentication failed.
Overrides AuthenticationProviderInterface::authenticate
File
- core/
tests/ Drupal/ Tests/ Core/ Authentication/ AuthenticationCollectorTest.php, line 91 - Contains \Drupal\Tests\Core\Authentication\AuthenticationCollectorTest.
Class
- TestAuthenticationProvider
- A simple provider for unit testing AuthenticationCollector.
Namespace
Drupal\Tests\Core\AuthenticationCode
public function authenticate(Request $request) {
return NULL;
}