class TestAuthenticationProvider
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Authentication/AuthenticationCollectorTest.php \Drupal\Tests\Core\Authentication\TestAuthenticationProvider
- 10 core/tests/Drupal/Tests/Core/Authentication/AuthenticationCollectorTest.php \Drupal\Tests\Core\Authentication\TestAuthenticationProvider
- 8.9.x core/tests/Drupal/Tests/Core/Authentication/AuthenticationCollectorTest.php \Drupal\Tests\Core\Authentication\TestAuthenticationProvider
A simple provider for unit testing AuthenticationCollector.
Hierarchy
- class \Drupal\Tests\Core\Authentication\TestAuthenticationProvider implements \Drupal\Core\Authentication\AuthenticationProviderInterface
Expanded class hierarchy of TestAuthenticationProvider
File
-
core/
tests/ Drupal/ Tests/ Core/ Authentication/ AuthenticationCollectorTest.php, line 62
Namespace
Drupal\Tests\Core\AuthenticationView source
class TestAuthenticationProvider implements AuthenticationProviderInterface {
/**
* The provider id.
*
* @var string
*/
public $providerId;
/**
* Constructor.
*/
public function __construct($provider_id) {
$this->providerId = $provider_id;
}
/**
* {@inheritdoc}
*/
public function applies(Request $request) {
return TRUE;
}
/**
* {@inheritdoc}
*/
public function authenticate(Request $request) {
return NULL;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.