Changeset 39173
- Timestamp:
- 11/08/2016 11:49:11 PM (8 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesUpdateCore.php
r36885 r39173 30 30 */ 31 31 public function test_new_files_are_not_in_old_files_array_compiled( $file ) { 32 $this->assertF alse( file_exists( dirname( ABSPATH ) . '/build/' . $file ));32 $this->assertFileNotExists( dirname( ABSPATH ) . '/build/' . $file ); 33 33 } 34 34 } -
trunk/tests/phpunit/tests/ajax/MediaEdit.php
r38113 r39173 95 95 96 96 foreach ( $files_that_shouldnt_exist as $file ) { 97 $this->assertF alse( file_exists( $file ), 'IMAGE_EDIT_OVERWRITE is leaving garbage image files behind.' );97 $this->assertFileNotExists( $file, 'IMAGE_EDIT_OVERWRITE is leaving garbage image files behind.' ); 98 98 } 99 99 } -
trunk/tests/phpunit/tests/dependencies/backbonejs.php
r37723 r39173 9 9 function test_exclusion_of_sourcemaps() { 10 10 $file = ABSPATH . WPINC . '/js/backbone.min.js'; 11 $this->assert True( file_exists( $file ));11 $this->assertFileExists( $file ); 12 12 $contents = trim( file_get_contents( $file ) ); 13 13 $this->assertFalse( strpos( $contents, 'sourceMappingURL' ), 'Presence of sourceMappingURL' ); -
trunk/tests/phpunit/tests/multisite/ms-files-rewriting.php
r38762 r39173 77 77 78 78 // The file on the main site should still exist. The file on the deleted site should not. 79 $this->assert True( file_exists( $file1['file'] ));80 $this->assertF alse( file_exists( $file2['file'] ));79 $this->assertFileExists( $file1['file'] ); 80 $this->assertFileNotExists( $file2['file'] ); 81 81 82 82 wpmu_delete_blog( $blog_id, true ); 83 83 84 84 // The file on the main site should still exist. The file on the deleted site should not. 85 $this->assert True( file_exists( $file1['file'] ));86 $this->assertF alse( file_exists( $file2['file'] ));85 $this->assertFileExists( $file1['file'] ); 86 $this->assertFileNotExists( $file2['file'] ); 87 87 } 88 88 } -
trunk/tests/phpunit/tests/multisite/site.php
r38935 r39173 286 286 287 287 // The file on the main site should still exist. The file on the deleted site should not. 288 $this->assert True( file_exists( $file1['file'] ));289 $this->assertF alse( file_exists( $file2['file'] ));288 $this->assertFileExists( $file1['file'] ); 289 $this->assertFileNotExists( $file2['file'] ); 290 290 291 291 wpmu_delete_blog( $blog_id, true ); 292 292 293 293 // The file on the main site should still exist. The file on the deleted site should not. 294 $this->assert True( file_exists( $file1['file'] ));295 $this->assertF alse( file_exists( $file2['file'] ));294 $this->assertFileExists( $file1['file'] ); 295 $this->assertFileNotExists( $file2['file'] ); 296 296 } 297 297 -
trunk/tests/phpunit/tests/theme.php
r39065 r39173 211 211 $this->assertNotEmpty( $wp_theme->get('License') ); 212 212 $path_to_style_css = $wp_theme->get_theme_root() . '/' . $wp_theme->get_stylesheet() . '/style.css'; 213 $this->assert True( file_exists( $path_to_style_css ));213 $this->assertFileExists( $path_to_style_css ); 214 214 $theme_data = get_theme_data( $path_to_style_css ); 215 215 $this->assertArrayHasKey( 'License', $theme_data ); -
trunk/tests/phpunit/tests/theme/themeDir.php
r39170 r39173 247 247 @mkdir( WP_CONTENT_DIR . '/themes/foo-themes' ); 248 248 249 $this->assert True( file_exists( WP_CONTENT_DIR . '/themes/foo' ));250 $this->assert True( file_exists( WP_CONTENT_DIR . '/themes/foo-themes'));249 $this->assertFileExists( WP_CONTENT_DIR . '/themes/foo' ); 250 $this->assertFileExists( WP_CONTENT_DIR . '/themes/foo-themes' ); 251 251 252 252 register_theme_directory( '/' );
Note: See TracChangeset
for help on using the changeset viewer.