diff --git a/tests/phpunit/tests/attachment/slashes.php b/tests/phpunit/tests/attachment/slashes.php index 412e829a07..4be5824565 100644 --- a/tests/phpunit/tests/attachment/slashes.php +++ b/tests/phpunit/tests/attachment/slashes.php @@ -25,6 +25,7 @@ class Tests_Attachment_Slashes extends WP_UnitTestCase { function tearDown() { wp_set_current_user( $this->old_current_user ); + wp_delete_user( $this->author_id ); parent::tearDown(); }