Changeset 51569 for trunk/tests/phpunit/tests/widgets/wpWidgetMedia.php
- Timestamp:
- 08/07/2021 10:40:44 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets/wpWidgetMedia.php
r51493 r51569 96 96 $this->assertSame( $name, $widget->name ); 97 97 98 $this->assertArraySubset( $widget_options, $widget->widget_options ); 99 $this->assertArraySubset( $control_options, $widget->control_options ); 98 foreach ( $widget_options as $key => $value ) { 99 $this->assertArrayHasKey( $key, $widget->widget_options ); 100 $this->assertSame( $value, $widget->widget_options[ $key ] ); 101 } 102 103 foreach ( $control_options as $key => $value ) { 104 $this->assertArrayHasKey( $key, $widget->control_options ); 105 $this->assertSame( $value, $widget->control_options[ $key ] ); 106 } 100 107 } 101 108
Note: See TracChangeset
for help on using the changeset viewer.