Changeset 57849
- Timestamp:
- 03/18/2024 09:25:33 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/filesystem/wpFilesystemDirect/mkdir.php
r57753 r57849 160 160 rmdir( $path ); 161 161 162 $expected_group = $this->is_windows() ? $original_owner : $original_owner + 1; 163 $created = self::$filesystem->mkdir( $path, 0755, $expected_group ); 164 $owner = fileowner( $path ); 162 $created = self::$filesystem->mkdir( $path, 0755, $original_owner ); 163 $owner = fileowner( $path ); 165 164 166 165 if ( $path !== self::$file_structure['test_dir']['path'] && is_dir( $path ) ) { … … 169 168 170 169 $this->assertTrue( $created, 'The directory was not created.' ); 171 $this->assertSame( $ expected_group, $owner, 'The owner is incorrect.' );170 $this->assertSame( $original_owner, $owner, 'The owner is incorrect.' ); 172 171 } 173 172 … … 198 197 rmdir( $path ); 199 198 200 $expected_group = $this->is_windows() ? $original_group : $original_group + 1; 201 $created = self::$filesystem->mkdir( $path, 0755, false, $expected_group ); 202 $group = filegroup( $path ); 199 $created = self::$filesystem->mkdir( $path, 0755, false, $original_group ); 200 $group = filegroup( $path ); 203 201 204 202 if ( $path !== self::$file_structure['test_dir']['path'] && is_dir( $path ) ) { … … 207 205 208 206 $this->assertTrue( $created, 'The directory was not created.' ); 209 $this->assertSame( $ expected_group, $group, 'The group is incorrect.' );207 $this->assertSame( $original_group, $group, 'The group is incorrect.' ); 210 208 } 211 209 }
Note: See TracChangeset
for help on using the changeset viewer.