Changeset 48939 for trunk/tests/phpunit/tests/widgets/media-widget.php
- Timestamp:
- 09/04/2020 07:01:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets/media-widget.php
r48937 r48939 63 63 $this->assertTrue( $widget->widget_options['customize_selective_refresh'] ); 64 64 $this->assertEmpty( $widget->widget_options['mime_type'] ); 65 $this->assert EqualSets(65 $this->assertSameSets( 66 66 array( 67 67 'add_to_widget', … … 207 207 $schema = $widget->get_instance_schema(); 208 208 209 $this->assert EqualSets(209 $this->assertSameSets( 210 210 array( 211 211 'attachment_id', … … 222 222 $this->assertInternalType( 'array', $this->filter_instance_schema_args ); 223 223 $this->assertSame( $widget, $this->filter_instance_schema_args['widget'] ); 224 $this->assert EqualSets( array( 'attachment_id', 'title', 'url' ), array_keys( $this->filter_instance_schema_args['schema'] ) );224 $this->assertSameSets( array( 'attachment_id', 'title', 'url' ), array_keys( $this->filter_instance_schema_args['schema'] ) ); 225 225 $this->assertArrayHasKey( 'injected', $schema ); 226 226 } … … 420 420 421 421 $result = $widget->display_media_state( array(), get_post( $attachment_id ) ); 422 $this->assert EqualSets( array(), $result );422 $this->assertSameSets( array(), $result ); 423 423 424 424 $widget->save_settings( … … 430 430 ); 431 431 $result = $widget->display_media_state( array(), get_post( $attachment_id ) ); 432 $this->assert EqualSets( array( $widget->l10n['media_library_state_single'] ), $result );432 $this->assertSameSets( array( $widget->l10n['media_library_state_single'] ), $result ); 433 433 434 434 $widget->save_settings( … … 443 443 ); 444 444 $result = $widget->display_media_state( array(), get_post( $attachment_id ) ); 445 $this->assert EqualSets( array( sprintf( $widget->l10n['media_library_state_multi']['singular'], 2 ) ), $result );445 $this->assertSameSets( array( sprintf( $widget->l10n['media_library_state_multi']['singular'], 2 ) ), $result ); 446 446 } 447 447
Note: See TracChangeset
for help on using the changeset viewer.