Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
2f4e6f0a
Unverified
Commit
2f4e6f0a
authored
Oct 23, 2020
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3178273
by longwave: BasicAuthTestTrait::basicAuthPostForm() does not work
(cherry picked from commit
f60d2589
)
parent
224ac3c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
core/modules/basic_auth/tests/src/Traits/BasicAuthTestTrait.php
...odules/basic_auth/tests/src/Traits/BasicAuthTestTrait.php
+0
-29
No files found.
core/modules/basic_auth/tests/src/Traits/BasicAuthTestTrait.php
View file @
2f4e6f0a
...
...
@@ -26,35 +26,6 @@ protected function basicAuthGet($path, $username, $password, array $options = []
return
$this
->
drupalGet
(
$path
,
$options
,
$this
->
getBasicAuthHeaders
(
$username
,
$password
));
}
/**
* Executes a form submission using basic authentication.
*
* @param string $path
* Location of the post form.
* @param array $edit
* Field data in an associative array.
* @param string $submit
* Value of the submit button whose click is to be emulated.
* @param string $username
* The username to use for basic authentication.
* @param string $password
* The password to use for basic authentication.
* @param array $options
* Options to be forwarded to the url generator.
* @param string $form_html_id
* (optional) HTML ID of the form to be submitted.
* @param string $extra_post
* (optional) A string of additional data to append to the POST submission.
*
* @return string
* The retrieved HTML string.
*
* @see \Drupal\simpletest\WebTestBase::drupalPostForm()
*/
protected
function
basicAuthPostForm
(
$path
,
$edit
,
$submit
,
$username
,
$password
,
array
$options
=
[],
$form_html_id
=
NULL
,
$extra_post
=
NULL
)
{
return
$this
->
drupalPostForm
(
$path
,
$edit
,
$submit
,
$options
,
$this
->
getBasicAuthHeaders
(
$username
,
$password
),
$form_html_id
,
$extra_post
);
}
/**
* Returns HTTP headers that can be used for basic authentication in Curl.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment