Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
2f4e6f0a
Unverified
Commit
2f4e6f0a
authored
Oct 23, 2020
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3178273
by longwave: BasicAuthTestTrait::basicAuthPostForm() does not work
(cherry picked from commit
f60d2589
)
parent
224ac3c0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/basic_auth/tests/src/Traits/BasicAuthTestTrait.php
+0
-29
0 additions, 29 deletions
...odules/basic_auth/tests/src/Traits/BasicAuthTestTrait.php
with
0 additions
and
29 deletions
core/modules/basic_auth/tests/src/Traits/BasicAuthTestTrait.php
+
0
−
29
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.
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment