- Timestamp:
- 09/04/2020 07:01:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/selective-refresh.php
r48937 r48939 96 96 $this->assertSame( $partial, $this->selective_refresh->add_partial( $partial ) ); 97 97 $this->assertSame( $partial, $this->selective_refresh->get_partial( 'bar' ) ); 98 $this->assert EqualSets( array( 'bar' ), array_keys( $this->selective_refresh->partials() ) );98 $this->assertSameSets( array( 'bar' ), array_keys( $this->selective_refresh->partials() ) ); 99 99 100 100 add_filter( 'customize_dynamic_partial_args', array( $this, 'filter_customize_dynamic_partial_args' ), 10, 2 ); … … 191 191 192 192 $partials = $this->selective_refresh->add_dynamic_partials( $partial_ids ); 193 $this->assert EqualSets( array( 'recognized', 'recognized-class' ), wp_list_pluck( $partials, 'id' ) );193 $this->assertSameSets( array( 'recognized', 'recognized-class' ), wp_list_pluck( $partials, 'id' ) ); 194 194 195 195 $this->assertInstanceOf( 'Tested_Custom_Partial', $this->selective_refresh->get_partial( 'recognized-class' ) );
Note: See TracChangeset
for help on using the changeset viewer.