- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets/wpWidgetMediaVideo.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_Video::get_instance_schema 33 33 */ 34 function test_get_instance_schema() {34 public function test_get_instance_schema() { 35 35 $widget = new WP_Widget_Media_Video(); 36 36 $schema = $widget->get_instance_schema(); … … 59 59 * @ticket 45029 60 60 */ 61 function test_get_instance_schema_filtering() {61 public function test_get_instance_schema_filtering() { 62 62 $widget = new WP_Widget_Media_Video(); 63 63 $schema = $widget->get_instance_schema(); … … 89 89 * @covers WP_Widget_Media_Video::__construct 90 90 */ 91 function test_constructor() {91 public function test_constructor() { 92 92 $widget = new WP_Widget_Media_Video(); 93 93 … … 118 118 * @covers WP_Widget_Media_Video::update 119 119 */ 120 function test_update() {120 public function test_update() { 121 121 $widget = new WP_Widget_Media_Video(); 122 122 $instance = array(); … … 219 219 * @covers WP_Widget_Media_Video::inject_video_max_width_style 220 220 */ 221 function test_render_media() {221 public function test_render_media() { 222 222 $test_movie_file = __FILE__ . '../../data/uploads/small-video.m4v'; 223 223 $widget = new WP_Widget_Media_Video(); … … 306 306 * @covers WP_Widget_Media_Video::enqueue_preview_scripts 307 307 */ 308 function test_enqueue_preview_scripts() {308 public function test_enqueue_preview_scripts() { 309 309 global $wp_scripts, $wp_styles; 310 310 $widget = new WP_Widget_Media_Video(); … … 331 331 * @covers WP_Widget_Media_Video::enqueue_admin_scripts 332 332 */ 333 function test_enqueue_admin_scripts() {333 public function test_enqueue_admin_scripts() { 334 334 set_current_screen( 'widgets.php' ); 335 335 $widget = new WP_Widget_Media_Video(); … … 344 344 * @covers WP_Widget_Media_Video::render_control_template_scripts 345 345 */ 346 function test_render_control_template_scripts() {346 public function test_render_control_template_scripts() { 347 347 $widget = new WP_Widget_Media_Video(); 348 348
Note: See TracChangeset
for help on using the changeset viewer.