BasicAuthTestTrait deprecated
trait BasicAuthTestTrait (View source)
deprecated
Provides common functionality for Basic Authentication test classes.
Methods
string
basicAuthGet(Url|string $path, string $username, string $password, array $options = [])
Retrieves a Drupal path or an absolute path using basic authentication.
string
basicAuthPostForm(string $path, array $edit, string $submit, string $username, string $password, array $options = [], string $form_html_id = NULL, string $extra_post = NULL)
Executes a form submission using basic authentication.
array
getBasicAuthHeaders(string $username, string $password)
Returns HTTP headers that can be used for basic authentication in Curl.
Details
protected string
basicAuthGet(Url|string $path, string $username, string $password, array $options = [])
Retrieves a Drupal path or an absolute path using basic authentication.
protected string
basicAuthPostForm(string $path, array $edit, string $submit, string $username, string $password, array $options = [], string $form_html_id = NULL, string $extra_post = NULL)
Executes a form submission using basic authentication.
protected array
getBasicAuthHeaders(string $username, string $password)
Returns HTTP headers that can be used for basic authentication in Curl.