mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-14 13:50:24 +00:00
Wouldn't it be incredible if you could run Unit Tests without all of your uploads being indiscriminately blown away and your upload folder permissions being destroyed?
The Future Is Now. Fixes #28847. git-svn-id: https://develop.svn.wordpress.org/trunk@29120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -148,7 +148,7 @@ class Test_Functions_Deprecated extends WP_UnitTestCase {
|
||||
$img = imagecreatefromjpeg( DIR_TESTDATA . '/images/canola.jpg' );
|
||||
wp_save_image_file( $file, $img, 'image/jpeg', 1 );
|
||||
imagedestroy( $img );
|
||||
@unlink($file);
|
||||
unlink( $file );
|
||||
|
||||
// Check if the arg was deprecated
|
||||
$check = $this->was_deprecated( 'argument', 'wp_save_image_file' );
|
||||
@@ -169,7 +169,7 @@ class Test_Functions_Deprecated extends WP_UnitTestCase {
|
||||
$img = wp_get_image_editor( DIR_TESTDATA . '/images/canola.jpg' );
|
||||
wp_save_image_file( $file, $img, 'image/jpeg', 1 );
|
||||
unset( $img );
|
||||
@unlink($file);
|
||||
unlink( $file );
|
||||
|
||||
// Check if the arg was deprecated
|
||||
$check = $this->was_deprecated( 'argument', 'wp_save_image_file' );
|
||||
|
||||
Reference in New Issue
Block a user