diff --git a/tests/phpunit/tests/rest-api/rest-plugins-controller.php b/tests/phpunit/tests/rest-api/rest-plugins-controller.php index 2448e274a2..3e2873f55c 100644 --- a/tests/phpunit/tests/rest-api/rest-plugins-controller.php +++ b/tests/phpunit/tests/rest-api/rest-plugins-controller.php @@ -86,6 +86,9 @@ class WP_REST_Plugins_Controller_Test extends WP_Test_REST_Controller_Testcase { if ( file_exists( WP_PLUGIN_DIR . '/test-plugin/test-plugin.php' ) ) { $this->rmdir( WP_PLUGIN_DIR . '/test-plugin' ); } + if ( file_exists( DIR_TESTDATA . '/link-manager.zip' ) ) { + unlink( DIR_TESTDATA . '/link-manager.zip' ); + } parent::tearDown(); }