Download & Extend

TestingParty08: drupal_http_request basic auth needs a test

Project:Drupal core
Version:7.x-dev
Component:tests
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Run drupal_http_request for http://user:pass@$base_url and assert $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] .

Comments

#1

Status:active» needs review

Patch created during the TestingParty08 with nickske.

Creates a dummy module that simply returns the two server variables that were passed using HTTP basic authentication, and check that the results are correct.

AttachmentSizeStatusTest resultOperations
drupal_http_request_basic_auth.patch3.14 KBIgnored: Check issue status.NoneNone

#2

Priority:critical» normal

this is the test I started writing during the awesome testing party. I incorporated the above mentioned patch. If there are any comments regarding the code quality or anything, please let me know.

----
Sorry, posted this in the wrong issue.

AttachmentSizeStatusTest resultOperations
drupal_request.patch5.62 KBIgnored: Check issue status.NoneNone

#3

Status:needs review» reviewed & tested by the community

edit: error.

#4

Status:reviewed & tested by the community» needs review

Reviewing.

#5

Status:needs review» closed (duplicate)

#296310: TestingParty08: drupal_http_request redirects need a test includes this test and documents the patch creators.

nobody click here