Changeset 58221
- Timestamp:
- 05/28/2024 05:25:06 AM (5 months ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/fonts/font-library/fontLibraryHooks.php
r57868 r58221 47 47 wp_delete_post( $font_face_id, true ); 48 48 49 $this->assertF alse( file_exists( $font_path ), 'The font file should have been deleted when the post was deleted.' );50 $this->assert True( file_exists( $other_font_path ), 'The other font file should exist.' );49 $this->assertFileDoesNotExist( $font_path, 'The font file should have been deleted when the post was deleted.' ); 50 $this->assertFileExists( $other_font_path, 'The other font file should exist.' ); 51 51 } 52 52 -
trunk/tests/phpunit/tests/privacy/wpPrivacyDeleteOldExportFiles.php
r55337 r58221 114 114 wp_privacy_delete_old_export_files(); 115 115 116 $this->assertF alse( file_exists( self::$expired_export_file ));116 $this->assertFileDoesNotExist( self::$expired_export_file ); 117 117 } 118 118 … … 125 125 wp_privacy_delete_old_export_files(); 126 126 127 $this->assert True( file_exists( self::$active_export_file ));127 $this->assertFileExists( self::$active_export_file ); 128 128 } 129 129 … … 136 136 wp_privacy_delete_old_export_files(); 137 137 138 $this->assert True( file_exists( self::$index_path ));138 $this->assertFileExists( self::$index_path ); 139 139 } 140 140 … … 148 148 149 149 wp_privacy_delete_old_export_files(); 150 $this->assert True( file_exists( self::$active_export_file ));151 $this->assert True( file_exists( self::$expired_export_file ));150 $this->assertFileExists( self::$active_export_file ); 151 $this->assertFileExists( self::$expired_export_file ); 152 152 153 153 remove_filter( 'wp_privacy_export_expiration', array( $this, 'filter_export_file_expiration_time' ) ); -
trunk/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php
r58097 r58221 290 290 wp_privacy_generate_personal_data_export_file( self::$export_request_id ); 291 291 292 $this->assert True( file_exists( self::$exports_dir . 'index.php' ));292 $this->assertFileExists( self::$exports_dir . 'index.php' ); 293 293 } 294 294 … … 301 301 wp_privacy_generate_personal_data_export_file( self::$export_request_id ); 302 302 303 $this->assert True( file_exists( $this->export_file_name ));303 $this->assertFileExists( $this->export_file_name ); 304 304 } 305 305 … … 409 409 410 410 wp_privacy_generate_personal_data_export_file( self::$export_request_id ); 411 $this->assert True( file_exists( $this->export_file_name ));411 $this->assertFileExists( $this->export_file_name ); 412 412 413 413 // Create a temporary export directory for the test's export files.
Note: See TracChangeset
for help on using the changeset viewer.