From f0b8424483e61e1a7d153ce33a9896f303ddc54b Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sat, 22 Nov 2014 15:36:00 +0000 Subject: [PATCH] Remove failing tests related to `WP_User::__unset()`. These tests have been added as a patch to their original ticket, #20043. Props MikeHansenMe. See #30284. git-svn-id: https://develop.svn.wordpress.org/trunk@30513 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/user.php | 40 ------------------------------------ 1 file changed, 40 deletions(-) diff --git a/tests/phpunit/tests/user.php b/tests/phpunit/tests/user.php index 6885cf1378..8ba4f970d9 100644 --- a/tests/phpunit/tests/user.php +++ b/tests/phpunit/tests/user.php @@ -145,46 +145,6 @@ class Tests_User extends WP_UnitTestCase { } } - /** - * Test the magic __unset method - * - * @ticket 20043 - */ - public function test_user_unset() { - // New user - $user_id = $this->factory->user->create( array( 'role' => 'author' ) ); - $user = new WP_User( $user_id ); - - // Test custom fields - $user->customField = 123; - $this->assertEquals( $user->customField, 123 ); - unset( $user->customField ); - $this->assertFalse( isset( $user->customField ) ); - return $user; - } - - /** - * @depends test_user_unset - * @expectedDeprecated WP_User->id - * @ticket 20043 - */ - function test_user_unset_lowercase_id( $user ) { - // Test 'id' (lowercase) - unset( $user->id ); - return $user; - } - - /** - * @depends test_user_unset_lowercase_id - * @ticket 20043 - */ - function test_user_unset_uppercase_id( $user ) { - // Test 'ID' - $this->assertNotEmpty( $user->ID ); - unset( $user->ID ); - $this->assertEmpty( $user->ID ); - } - // Test meta property magic functions for property get/set/isset. function test_user_meta_properties() { global $wpdb;