From ae226d66b6d775e660903c79c1ee26ec05b10176 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 17 Oct 2015 18:29:32 +0000 Subject: [PATCH] Unit Tests: after [35242], declare some missing instance props on individual test classes. See #30017, #33968. git-svn-id: https://develop.svn.wordpress.org/trunk@35243 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/image/intermediate_size.php | 2 ++ tests/phpunit/tests/post/attachments.php | 1 + tests/phpunit/tests/post/wpUniquePostSlug.php | 2 ++ 3 files changed, 5 insertions(+) diff --git a/tests/phpunit/tests/image/intermediate_size.php b/tests/phpunit/tests/image/intermediate_size.php index 0d218172f8..d613b9d4d2 100644 --- a/tests/phpunit/tests/image/intermediate_size.php +++ b/tests/phpunit/tests/image/intermediate_size.php @@ -5,6 +5,8 @@ * @group upload */ class Tests_Image_Intermediate_Size extends WP_UnitTestCase { + protected $ids = array(); + function tearDown() { $this->remove_added_uploads(); parent::tearDown(); diff --git a/tests/phpunit/tests/post/attachments.php b/tests/phpunit/tests/post/attachments.php index 7459c6ae4c..498f27652b 100644 --- a/tests/phpunit/tests/post/attachments.php +++ b/tests/phpunit/tests/post/attachments.php @@ -6,6 +6,7 @@ * @group upload */ class Tests_Post_Attachments extends WP_UnitTestCase { + protected $ids = array(); function tearDown() { // Remove all uploads. diff --git a/tests/phpunit/tests/post/wpUniquePostSlug.php b/tests/phpunit/tests/post/wpUniquePostSlug.php index 690fc3ed48..354997e462 100644 --- a/tests/phpunit/tests/post/wpUniquePostSlug.php +++ b/tests/phpunit/tests/post/wpUniquePostSlug.php @@ -4,6 +4,8 @@ * @group post */ class Tests_Post_WpUniquePostSlug extends WP_UnitTestCase { + protected $post_ids = array(); + /** * @ticket 21013 */