wordpress-develop/tests/phpunit/tests/admin
Colin Stewart 7d96189ba1 Build/Test Tools: Add sys_get_temp_dir() to open_basedir tests.
In PHPUnit 10.3.5, 9.6.13 and 8.5.34, the child processes used for process isolation now use temporary files to communicate their result to the parent process.

This caused a failure in some tests that set the `open_basedir` PHP directive to a value that did not include `sys_get_temp_dir()`.

This adds `sys_get_temp_dir()` to the `open_basedir` value set by the tests to ensure that permission is still granted for the temporary directory.

PHPUnit uses `sys_get_temp_dir()`. To ensure the result is the same, Core's `get_temp_dir()` function is not used.

References:
- https://github.com/sebastianbergmann/phpunit/issues/5356

Props desrosj, mukesh27, SergeyBiryukov, costdev.
Fixes #59394.

git-svn-id: https://develop.svn.wordpress.org/trunk@56622 602fd350-edb4-49c9-b593-d223f7449a82
2023-09-19 16:41:22 +00:00
..
includesComment.php Tests: Add missing @covers tags for Tests_Admin_IncludesComment. 2021-09-01 21:58:32 +00:00
includesFile.php Coding Standards: Include one space after function keyword for closures. 2023-09-12 15:21:02 +00:00
includesMisc.php Build/Test Tools: Add missing @covers and visibility for Tests_Admin_includesMisc. 2021-11-02 22:07:49 +00:00
includesPlugin.php I18N: Introduce WP_Textdomain_Registry to store text domains and their language directory paths. 2022-08-11 12:37:05 +00:00
includesPost.php General: Add block_hooks field to block type registration, REST API. 2023-09-14 13:23:13 +00:00
includesSchema.php Coding Standards: Include one space after function keyword for closures. 2023-09-12 15:21:02 +00:00
includesScreen.php Tests: Use the factory method instead of the property. 2022-09-06 22:09:49 +00:00
includesTemplate.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
includesTheme.php Tests: Use the factory method instead of the property. 2022-09-06 22:09:49 +00:00
includesUser.php Application Passwords: Allow plain HTTP success and reject URLs when using a local environment type. 2023-02-07 17:43:55 +00:00
wpAdminNotice.php Administration: Add support for attributes in wp_admin_notice(). 2023-09-18 00:28:24 +00:00
wpAutomaticUpdater.php Build/Test Tools: Add sys_get_temp_dir() to open_basedir tests. 2023-09-19 16:41:22 +00:00
wpCommentsListTable.php Coding Standards: Include one space after function keyword for closures. 2023-09-12 15:21:02 +00:00
wpCommunityEvents.php Tests: Merge file-level and class-level DocBlocks in various unit test files. 2023-02-14 16:10:13 +00:00
wpGetAdminNotice.php Administration: Add support for attributes in wp_admin_notice(). 2023-09-18 00:28:24 +00:00
wpListTable.php Code Modernization: Use wp_trigger_error() in WP_List_Table magic methods. 2023-09-07 20:39:07 +00:00
wpMediaListTable.php General: Increase the minimum supported version of PHP to 7.0.0. 2023-07-05 17:39:55 +00:00
wpPluginInstallListTable.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:06:08 +00:00
wpPluginsListTable.php Coding Standards: Fix a PHPCS issue found in wpPluginsListTable.php. 2023-06-27 16:09:19 +00:00
wpPostCommentsListTable.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
wpPostsListTable.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
wpPrivacyRequestsTable.php Tests: Use the data_ prefix for various data provider methods. 2023-03-19 12:03:30 +00:00
wpSiteHealth.php Coding Standards: Include one space after function keyword for closures. 2023-09-12 15:21:02 +00:00
wpThemeInstallListTable.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:06:08 +00:00
wpUserSearch.php Fix coding standards for Tests_Admin_wpUserSearch 2023-08-25 03:42:48 +00:00
wpUsersListTable.php Administration: Add new get_views_links method to WP_List_Table. 2022-09-19 21:06:08 +00:00