Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed Mar 4, 2024
1 parent c7de611 commit d7b3b99
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/files/test-vip-filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Automattic\Test\Constant_Mocker;
use ErrorException;
use Parsely\RemoteAPI\Base_Endpoint_Remote;
use WP_Error;
use WP_Filesystem_Base;
use WP_Filesystem_Direct;
Expand Down Expand Up @@ -394,10 +393,8 @@ public function test_wp_font_dir() {
$this->assertEquals( true, true );
return;
}
// Simulate filter behavior which happens during upload:
add_filter( 'upload_dir', '\wp_get_font_dir' );

$font_dir = \wp_get_font_dir();
remove_filter( 'upload_dir', '\zwp_get_font_dir' );

$this->assertEquals( $font_dir, [
'path' => 'vip://wp-contentt/uploads/fonts',
Expand Down

0 comments on commit d7b3b99

Please sign in to comment.