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' ] );