From da7ddeaeabbed0a9ec6be3f41093853a9f09c381 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 6 Oct 2015 04:00:53 +0000 Subject: [PATCH] Tests: Make the Attachment Slashes tests clean up after itself. Fixes #34162. git-svn-id: https://develop.svn.wordpress.org/trunk@34852 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/attachment/slashes.php | 1 + 1 file changed, 1 insertion(+) 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(); }