Make WordPress Core

Opened 2 weeks ago

Last modified 2 weeks ago

#43982 assigned enhancement

The test suite shouldn't assume that the data directory exists

Reported by: johnbillion Owned by: johnbillion
Milestone: 4.9.7 Priority: low
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch commit
Focuses: Cc:


It's possible to bundle the WordPress unit test framework inside a project by including the contents of the tests/phpunit/includes directory.

However the test framework makes an assumption that the tests/phpunit/data/themedir1 directory exists and causes a PHP notice to be triggered:

Notice: tests/phpunit/wordpress-tests-lib/includes/../data/themedir1 is not readable in wp-includes/theme.php on line 471

Attachments (1)

43982.diff (749 bytes) - added by johnbillion 2 weeks ago.

Download all attachments as: .zip

Change History (3)

2 weeks ago

#1 @johnbillion
2 weeks ago

  • Keywords has-patch added; needs-patch removed

#2 @netweb
2 weeks ago

  • Keywords commit added
Note: See TracTickets for help on using tickets.