You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9d0a755
Browse filesBrowse the repository at this point in the historyBrowse files
Tests: Move the wp_mkdir_p() tests to the current folder layout.
Move the tests added in [65175] to `tests/phpunit/tests/functions/`, without a namespace, to match the guidance for new tests during 7.2 on #65208. Rename the race test's stream wrapper class to match.
Follow-up to [65175].
See #57081, #65208.
git-svn-id: https://develop.svn.wordpress.org/trunk@65329 602fd350-edb4-49c9-b593-d223f7449a82
// A umask that alters the inherited bits, so the permission block is reached.
110
106
$previous_umask = umask( 0022 );
@@ -116,9 +112,9 @@ public function test_directory_created_by_another_process_keeps_its_permissions(
116
112
stream_wrapper_unregister( 'wpmkdirprace' );
117
113
}
118
114
119
-
$this->assertSame( 1, WpMkdirPRaceStream::$mkdir_calls, 'The race path was not exercised, so the rest of this test proves nothing.' );
115
+
$this->assertSame( 1, Tests_Functions_WpMkdirP_Race_Stream::$mkdir_calls, 'The race path was not exercised, so the rest of this test proves nothing.' );
120
116
$this->assertTrue( $created, 'Losing the race is not a failure: the directory exists.' );
121
-
$this->assertSame( 0, WpMkdirPRaceStream::$chmod_calls, 'wp_mkdir_p() must not change permissions on a directory it did not create.' );
117
+
$this->assertSame( 0, Tests_Functions_WpMkdirP_Race_Stream::$chmod_calls, 'wp_mkdir_p() must not change permissions on a directory it did not create.' );
122
118
}
123
119
}
124
120
@@ -129,7 +125,7 @@ public function test_directory_created_by_another_process_keeps_its_permissions(
129
125
* is the state wp_mkdir_p() sees when another process created the directory first.
130
126
* Permission changes are counted rather than applied.
131
127
*/
132
-
classWpMkdirPRaceStream {
128
+
classTests_Functions_WpMkdirP_Race_Stream {
133
129
134
130
/**
135
131
* Number of permission changes attempted through this wrapper.
0 commit comments