From 0a749d0c8f62ab702aa081934295ea604e95c28c Mon Sep 17 00:00:00 2001 From: Rebecca Hum <16962021+rebeccahum@users.noreply.github.com> Date: Wed, 14 Jun 2023 11:03:01 -0600 Subject: [PATCH] Fix test --- tests/files/test-wp-filesystem-vip.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/files/test-wp-filesystem-vip.php b/tests/files/test-wp-filesystem-vip.php index 5a5f7ae999..6293702509 100644 --- a/tests/files/test-wp-filesystem-vip.php +++ b/tests/files/test-wp-filesystem-vip.php @@ -282,6 +282,8 @@ public function test__get_transport_for_path__uploads_streamwrapper() { } public function test__get_transport_for_path__uploads() { + // Now that streamwrapper is enabled by default, we need to define it as disabled for this test. + define( 'VIP_FILESYSTEM_USE_STREAM_WRAPPER', false ); $get_transport_for_path = self::get_method( 'get_transport_for_path' ); $result = $get_transport_for_path->invokeArgs( $this->filesystem, [ '/tmp/wordpress/wp-content/uploads/file.file', 'write' ] );