- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets/wpWidgetMediaAudio.php
r51493 r52010 20 20 * @global WP_Styles $wp_styles 21 21 */ 22 function clean_up_global_scope() {22 public function clean_up_global_scope() { 23 23 global $wp_scripts, $wp_styles; 24 24 parent::clean_up_global_scope(); … … 32 32 * @covers WP_Widget_Media_Audio::get_instance_schema 33 33 */ 34 function test_get_instance_schema() {34 public function test_get_instance_schema() { 35 35 $wp_widget_audio = new WP_Widget_Media_Audio(); 36 36 $schema = $wp_widget_audio->get_instance_schema(); … … 58 58 * @ticket 45029 59 59 */ 60 function test_get_instance_schema_filtering() {60 public function test_get_instance_schema_filtering() { 61 61 $wp_widget_audio = new WP_Widget_Media_Audio(); 62 62 $schema = $wp_widget_audio->get_instance_schema(); … … 88 88 * @covers WP_Widget_Media_Audio::__construct 89 89 */ 90 function test_constructor() {90 public function test_constructor() { 91 91 $widget = new WP_Widget_Media_Audio(); 92 92 … … 117 117 * @covers WP_Widget_Media_Audio::update 118 118 */ 119 function test_update() {119 public function test_update() { 120 120 $widget = new WP_Widget_Media_Audio(); 121 121 $instance = array(); … … 217 217 * @covers WP_Widget_Media_Audio::render_media 218 218 */ 219 function test_render_media() {219 public function test_render_media() { 220 220 $test_audio_file = __FILE__ . '../../data/uploads/small-audio.mp3'; 221 221 $widget = new WP_Widget_Media_Audio(); … … 283 283 * @covers WP_Widget_Media_Audio::enqueue_preview_scripts 284 284 */ 285 function test_enqueue_preview_scripts() {285 public function test_enqueue_preview_scripts() { 286 286 global $wp_scripts, $wp_styles; 287 287 $wp_scripts = null; … … 303 303 * @covers WP_Widget_Media_Audio::enqueue_admin_scripts 304 304 */ 305 function test_enqueue_admin_scripts() {305 public function test_enqueue_admin_scripts() { 306 306 set_current_screen( 'widgets.php' ); 307 307 $widget = new WP_Widget_Media_Audio(); … … 316 316 * @covers WP_Widget_Media_Audio::render_control_template_scripts 317 317 */ 318 function test_render_control_template_scripts() {318 public function test_render_control_template_scripts() { 319 319 $widget = new WP_Widget_Media_Audio(); 320 320
Note: See TracChangeset
for help on using the changeset viewer.