Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#59937 closed defect (bug) (maybelater)

phpunit test for send_nosniff_header

Reported by: pbearne Owned by:
Priority: normal Milestone:
Component: Build/Test Tools Version:
Severity: normal Keywords:
Cc: Focuses:

Description


Change History (3)

#1 @pbearne
3 years ago

I could not work out how to test this :-(
Does anyone else know how to test it?

#2 @jorbin
3 years ago

  • Keywords close added

I am going to guess that trying to test this is going to be more effort than actually testing. I think headers_list is out since that doesn't work when ​running PHP from the command line. This might be a place where we want to maybelater the ticket and if there becomes a better way to test headers in the future, we can use that and reopen this ticket.

#3 @jorbin
3 years ago

  • Keywords close removed
  • Milestone Awaiting Review
  • Resolution → maybelater
  • Status new → closed

Seeing no objection or ideas for a testing plan, going to close this as maybelater. Discussion can continue and if a path forward is discovered, this should be reopened.

Note: See TracTickets for help on using tickets.