Skip to content

Commit

Permalink
Try updating constants to fix string substitution issue
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed Mar 15, 2024
1 parent 71fa22f commit 6bc5fa2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/files/test-vip-filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class VIP_Filesystem_Test extends WP_UnitTestCase {

public static function configure_constant_mocker(): void {
Constant_Mocker::clear();
define( 'LOCAL_UPLOADS', '/wp/uploads' );
define( 'WP_CONTENT_DIR', '/wp/wordpress/wp-content' );
define( 'LOCAL_UPLOADS', '/tmp/uploads' );
define( 'WP_CONTENT_DIR', '/tmp/wordpress/wp-content' );
}

public function setUp(): void {
Expand Down Expand Up @@ -397,8 +397,8 @@ public function test_wp_font_dir() {
$font_dir = \wp_get_font_dir();

$this->assertEquals( $font_dir, [
'path' => 'vip://wp-contentt/uploads/fonts',
'basedir' => 'vip://wp-contentt/uploads/fonts',
'path' => 'vip://wp-content/uploads/fonts',
'basedir' => 'vip://wp-content/uploads/fonts',
'url' => 'http://example.org/wp-content/uploads/fonts',
'baseurl' => 'http://example.org/wp-content/uploads/fonts',
'subdir' => '',
Expand Down

0 comments on commit 6bc5fa2

Please sign in to comment.