Make WordPress Core

Opened 8 years ago

Last modified 6 days ago

#46577 new defect (bug)

Improve tests related to file permissions for privacy export requests

Reported by: desrosj Owned by:
Priority: normal Milestone: Future Release
Component: Privacy Version:
Severity: normal Keywords: has-unit-tests changes-requested has-patch
Cc: Focuses: tests, privacy

Description

Continuation of #44233, which tackled adding unit tests for privacy export requests (also see [43630], [44792]).

Some issues were discovered in certain situations with tests asserting the correct behavior when file and directory permissions were incorrectly configured.

Attachments (2)

46577.diff​ (2.1 KB ) - added by desrosj 8 years ago.
46577.2.diff​ (2.3 KB ) - added by SirLouen 18 months ago.
Refreshed patch

Download all attachments as: .zip

Change History (6)

#1 @desrosj
2 years ago

  • Component Build/Test Tools → Privacy
  • Keywords has-patch has-unit-tests needs-testing added

Since this is about adding tests and not a general build or test tooling change, I'm reassigning it to the relevant component.

This ticket was mentioned in ​Slack in #core-test by sppramodh. ​View the logs.


2 years ago

@SirLouen
18 months ago

Refreshed patch

#3 @SirLouen
18 months ago

  • Focuses tests added
  • Keywords changes-requested added; has-patch needs-testing removed

Test Report

Description

❌ This report can't validate that the indicated patch works as expected.

Patch tested: https://core.trac.wordpress.org/attachment/ticket/46577/46577.2.diff

Environment

  • WordPress: 6.9-alpha-60093-src
  • PHP: 8.2.28
  • Server: nginx/1.27.5
  • Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
  • Browser: Chrome 136.0.0.0
  • OS: Windows 10/11
  • Theme: Twenty Sixteen 3.5
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ❌ Issue not resolved with the patch.

Additional Notes

  1. This patch is essentially the same as the first one, but I needed to refresh it to apply correctly
  2. ❌ Tests are not currently passing.
  3. Check setExpectedException because its deprecated. Time to switch to expectException

This ticket was mentioned in ​PR #15847 on ​WordPress/wordpress-develop by ​@sawf1y.


6 days ago
#4

  • Keywords has-patch added

Refreshed and added tests for privacy export request

Trac ticket: 46577

Use of AI Tools

AI assistance: Yes
Tool(s): GitHub Copilot, ChatGPT
Model(s): GPT-5.1
Used for: Tests refreshing and generation. Code was reviewed and tested by me.

Note: See TracTickets for help on using tickets.