Make WordPress Core

Changeset 30688


Ignore:
Timestamp:
12/01/2014 02:24:43 PM (10 years ago)
Author:
boonebgorges
Message:

Use assertEqualSetsWithIndex() as appropriate in get_terms() tests.

See #30522.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term/getTerms.php

    r30265 r30688  
    642642        _unregister_taxonomy( 'hierarchical_fields' );
    643643
    644         $this->assertEqualSets( $expected, $found );
     644        $this->assertEqualSetsWithIndex( $expected, $found );
    645645    }
    646646
     
    665665        _unregister_taxonomy( 'hierarchical_fields' );
    666666
    667         $this->assertEqualSets( $expected, $found );
     667        $this->assertEqualSetsWithIndex( $expected, $found );
    668668    }
    669669
     
    683683        $expected = array(
    684684            $terms['parent2'] => 0,
    685             $terms['child2'] => $terms['parent1'],
    686         );
    687 
    688         _unregister_taxonomy( 'hierarchical_fields' );
    689 
    690         $this->assertEqualSets( $expected, $found );
     685            $terms['child1'] => $terms['parent1'],
     686        );
     687
     688        _unregister_taxonomy( 'hierarchical_fields' );
     689
     690        $this->assertEqualSetsWithIndex( $expected, $found );
    691691    }
    692692
     
    713713        _unregister_taxonomy( 'hierarchical_fields' );
    714714
    715         $this->assertEqualSets( $expected, $found );
     715        $this->assertEqualSetsWithIndex( $expected, $found );
    716716    }
    717717
     
    739739        _unregister_taxonomy( 'hierarchical_fields' );
    740740
    741         $this->assertEqualSets( $expected, $found );
     741        $this->assertEqualSetsWithIndex( $expected, $found );
    742742    }
    743743
     
    762762        _unregister_taxonomy( 'hierarchical_fields' );
    763763
    764         $this->assertEqualSets( $expected, $found );
     764        $this->assertEqualSetsWithIndex( $expected, $found );
    765765    }
    766766
     
    787787        _unregister_taxonomy( 'hierarchical_fields' );
    788788
    789         $this->assertEqualSets( $expected, $found );
     789        $this->assertEqualSetsWithIndex( $expected, $found );
    790790    }
    791791
     
    813813        _unregister_taxonomy( 'hierarchical_fields' );
    814814
    815         $this->assertEqualSets( $expected, $found );
     815        $this->assertEqualSetsWithIndex( $expected, $found );
    816816    }
    817817
     
    836836        _unregister_taxonomy( 'hierarchical_fields' );
    837837
    838         $this->assertEqualSets( $expected, $found );
     838        $this->assertEqualSetsWithIndex( $expected, $found );
    839839    }
    840840
Note: See TracChangeset for help on using the changeset viewer.