Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f60d2589
Unverified
Commit
f60d2589
authored
Oct 23, 2020
by
Alex Pott
Browse files
Issue
#3178273
by longwave: BasicAuthTestTrait::basicAuthPostForm() does not work
parent
8e416f13
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/basic_auth/tests/src/Traits/BasicAuthTestTrait.php
View file @
f60d2589
...
...
@@ -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.
*
...
...
Alex Pott
@alexpott
mentioned in commit
1e30db10
·
Oct 26, 2020
mentioned in commit
1e30db10
mentioned in commit 1e30db106289811f9531fbc3c92e3484d1865d0c
Toggle commit list
Alex Pott
@alexpott
mentioned in commit
2f4e6f0a
·
Oct 26, 2020
mentioned in commit
2f4e6f0a
mentioned in commit 2f4e6f0ae9201fbb540c9b0e7694afb9f36f6ceb
Toggle commit list
Alex Pott
@alexpott
mentioned in commit
01d1feca
·
Oct 26, 2020
mentioned in commit
01d1feca
mentioned in commit 01d1fecad6d4e2c36c28c6d738705746bdad1ba2
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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