You are here

public function TestAuthenticationProvider::applies in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Authentication/AuthenticationCollectorTest.php \Drupal\Tests\Core\Authentication\TestAuthenticationProvider::applies()

Checks whether suitable authentication credentials are on the request.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The request object.

Return value

bool TRUE if authentication credentials suitable for this provider are on the request, FALSE otherwise.

Overrides AuthenticationProviderInterface::applies

File

core/tests/Drupal/Tests/Core/Authentication/AuthenticationCollectorTest.php, line 84
Contains \Drupal\Tests\Core\Authentication\AuthenticationCollectorTest.

Class

TestAuthenticationProvider
A simple provider for unit testing AuthenticationCollector.

Namespace

Drupal\Tests\Core\Authentication

Code

public function applies(Request $request) {
  return TRUE;
}