Skip to content

Commit 5e399dd

Browse files
committed
Tests: Isolate the debug-mode multisite files test.
Run the `MS_FILES_REQUEST` case in a separate process with global state preservation disabled. The constant cannot be removed during teardown and must not affect later `wp_debug_mode()` calls. Follow-up to [64267]. Developed in: #14297 Props shailu25. See #65893. git-svn-id: https://develop.svn.wordpress.org/trunk@64363 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5e11bd0 commit 5e399dd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎tests/phpunit/tests/load/wpDebugMode.php‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,16 @@ public function tear_down() {
6262
/**
6363
* Test: `wp_debug_mode()` should log, but not display, errors for `ms-files.php`.
6464
*
65+
* Runs in a separate process because it defines `MS_FILES_REQUEST`, which cannot be
66+
* undone by teardown and can affect later `wp_debug_mode()` calls.
67+
*
6568
* @ticket 53493
69+
* @ticket 65893
6670
*
6771
* @since 5.9.0
72+
*
73+
* @runInSeparateProcess
74+
* @preserveGlobalState disabled
6875
*/
6976
public function test_ms_files_logs_but_doesnt_display_errors() {
7077
/*

0 commit comments

Comments
 (0)