Make WordPress Core

Opened 10 months ago

Closed 8 months ago

#59937 closed defect (bug) (maybelater)

phpunit test for send_nosniff_header

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

Description


Change History (3)

#1 @pbearne
10 months ago

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

#2 @jorbin
10 months 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
8 months ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to 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.