diff --git a/tests/phpunit/tests/block-template-utils.php b/tests/phpunit/tests/block-template-utils.php index cb41692ab5..666edd020a 100644 --- a/tests/phpunit/tests/block-template-utils.php +++ b/tests/phpunit/tests/block-template-utils.php @@ -348,6 +348,7 @@ class Tests_Block_Template_Utils extends WP_UnitTestCase { * Should generate block templates export file. * * @ticket 54448 + * @requires extension zip */ function test_wp_generate_block_templates_export_file() { $filename = wp_generate_block_templates_export_file(); diff --git a/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php b/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php index a322778941..3f247ea590 100644 --- a/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php +++ b/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php @@ -12,6 +12,7 @@ * * @group privacy * @covers ::wp_privacy_generate_personal_data_export_file + * @requires extension zip * * @since 5.2.0 */ @@ -68,10 +69,6 @@ class Tests_Privacy_wpPrivacyGeneratePersonalDataExportFile extends WP_UnitTestC $this->export_file_name = ''; - if ( ! class_exists( 'ZipArchive' ) ) { - $this->markTestSkipped( 'The ZipArchive class is missing.' ); - } - if ( ! $this->remove_exports_dir() ) { $this->markTestSkipped( 'Existing exports directory could not be removed. Skipping test.' ); }