Make WordPress Core


Ignore:
Timestamp:
02/20/2020 05:04:42 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Fix the Travis CI build for the 3.9 branch.

Among other fixes, this backports [28943], [28961], [28964-28968], [28988], [29120], [29251], [29503], [29860], [29869], [29954], [30001], [30160], [30282], [30285], [30289-30291], [30513-30514], [30516-30521], [30523-30524], [30526], [30529-30530], [31253-31254], [31257-31259], [31622], [33374], [40255], [40257], [40259], [40269], [40271], [40446], [40449], [40457], [40604], [40538], [40833], [41082], [41303], [41306], [44993].

See #49485.

Location:
branches/3.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.9

  • branches/3.9/tests/phpunit/tests/user.php

    r30432 r47329  
    146146        }
    147147
    148         /**
    149          * Test the magic __unset method
    150          *
    151          * @ticket 20043
    152          */
    153         public function test_user_unset() {
    154                 // New user
    155                 $user_id = $this->factory->user->create( array( 'role' => 'author' ) );
    156                 $user = new WP_User( $user_id );
    157 
    158                 // Test custom fields
    159                 $user->customField = 123;
    160                 $this->assertEquals( $user->customField, 123 );
    161                 unset( $user->customField );
    162                 $this->assertFalse( isset( $user->customField ) );
    163                 return $user;
    164         }
    165 
    166         /**
    167          * @depends test_user_unset
    168          * @expectedDeprecated WP_User->id
    169          * @ticket 20043
    170          */
    171         function test_user_unset_lowercase_id( $user ) {
    172                 // Test 'id' (lowercase)
    173                 unset( $user->id );
    174                 return $user;
    175         }
    176 
    177         /**
    178          * @depends test_user_unset_lowercase_id
    179          * @ticket 20043
    180          */
    181         function test_user_unset_uppercase_id( $user ) {
    182                 // Test 'ID'
    183                 $this->assertNotEmpty( $user->ID );
    184                 unset( $user->ID );
    185                 $this->assertEmpty( $user->ID );
    186         }
    187 
    188148        // Test meta property magic functions for property get/set/isset.
    189149        function test_user_meta_properties() {
Note: See TracChangeset for help on using the changeset viewer.