Changeset 51564
- Timestamp:
- 08/06/2021 09:45:32 PM (4 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesPlugin.php
r51419 r51564 404 404 */ 405 405 public function test_get_mu_plugins_when_mu_plugins_directory_does_not_exist() { 406 $this->assertFile NotExists( WPMU_PLUGIN_DIR );406 $this->assertFileDoesNotExist( WPMU_PLUGIN_DIR ); 407 407 $this->assertSame( array(), get_mu_plugins() ); 408 408 } -
trunk/tests/phpunit/tests/ajax/MediaEdit.php
r51415 r51564 97 97 98 98 foreach ( $files_that_shouldnt_exist as $file ) { 99 $this->assertFile NotExists( $file, 'IMAGE_EDIT_OVERWRITE is leaving garbage image files behind.' );99 $this->assertFileDoesNotExist( $file, 'IMAGE_EDIT_OVERWRITE is leaving garbage image files behind.' ); 100 100 } 101 101 } -
trunk/tests/phpunit/tests/functions.php
r51537 r51564 174 174 $this->assertFileExists( $testdir . 'test-image.png', 'Test image does not exist' ); 175 175 $this->assertSame( 'test-image-1.png', wp_unique_filename( $testdir, 'test-image.png' ), 'Number not appended correctly' ); 176 $this->assertFile NotExists( $testdir . 'test-image-1.png' );176 $this->assertFileDoesNotExist( $testdir . 'test-image-1.png' ); 177 177 178 178 // Check special chars. -
trunk/tests/phpunit/tests/image/editorImagick.php
r50491 r51564 608 608 $editor = new WP_Image_Editor_Imagick( $file ); 609 609 610 $this->assertFile NotExists( $directory );610 $this->assertFileDoesNotExist( $directory ); 611 611 612 612 $loaded = $editor->load(); -
trunk/tests/phpunit/tests/link/themeFile.php
r50454 r51564 122 122 $this->assertFileExists( WP_CONTENT_DIR . "/themes/theme-file-child/{$file}" ); 123 123 } else { 124 $this->assertFile NotExists( WP_CONTENT_DIR . "/themes/theme-file-child/{$file}" );124 $this->assertFileDoesNotExist( WP_CONTENT_DIR . "/themes/theme-file-child/{$file}" ); 125 125 } 126 126 … … 128 128 $this->assertFileExists( WP_CONTENT_DIR . "/themes/theme-file-parent/{$file}" ); 129 129 } else { 130 $this->assertFile NotExists( WP_CONTENT_DIR . "/themes/theme-file-parent/{$file}" );130 $this->assertFileDoesNotExist( WP_CONTENT_DIR . "/themes/theme-file-parent/{$file}" ); 131 131 } 132 132 -
trunk/tests/phpunit/tests/multisite/ms-files-rewriting.php
r50463 r51564 77 77 // The file on the main site should still exist. The file on the deleted site should not. 78 78 $this->assertFileExists( $file1['file'] ); 79 $this->assertFile NotExists( $file2['file'] );79 $this->assertFileDoesNotExist( $file2['file'] ); 80 80 81 81 wpmu_delete_blog( $blog_id, true ); … … 83 83 // The file on the main site should still exist. The file on the deleted site should not. 84 84 $this->assertFileExists( $file1['file'] ); 85 $this->assertFile NotExists( $file2['file'] );85 $this->assertFileDoesNotExist( $file2['file'] ); 86 86 } 87 87 } -
trunk/tests/phpunit/tests/multisite/site.php
r51462 r51564 392 392 // The file on the main site should still exist. The file on the deleted site should not. 393 393 $this->assertFileExists( $file1['file'] ); 394 $this->assertFile NotExists( $file2['file'] );394 $this->assertFileDoesNotExist( $file2['file'] ); 395 395 396 396 wpmu_delete_blog( $blog_id, true ); … … 398 398 // The file on the main site should still exist. The file on the deleted site should not. 399 399 $this->assertFileExists( $file1['file'] ); 400 $this->assertFile NotExists( $file2['file'] );400 $this->assertFileDoesNotExist( $file2['file'] ); 401 401 } 402 402 -
trunk/tests/phpunit/tests/rest-api/rest-plugins-controller.php
r51563 r51564 845 845 $this->assertTrue( $response->get_data()['deleted'] ); 846 846 $this->assertSame( self::PLUGIN, $response->get_data()['previous']['plugin'] ); 847 $this->assertFile NotExists( WP_PLUGIN_DIR . '/' . self::PLUGIN_FILE );847 $this->assertFileDoesNotExist( WP_PLUGIN_DIR . '/' . self::PLUGIN_FILE ); 848 848 } 849 849
Note: See TracChangeset
for help on using the changeset viewer.