We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6908ac commit b822b04Copy full SHA for b822b04
1 file changed
tests/phpunit/tests/widgets/custom-html-widget.php
@@ -291,8 +291,8 @@ public function test_render_control_template_scripts() {
291
public function test_add_help_text() {
292
set_current_screen( 'widgets.php' );
293
WP_Widget_Custom_HTML::add_help_text();
294
- $content = get_current_screen()->get_help_tab( 'custom_html_widget' )['content'];
+ $help_tab = get_current_screen()->get_help_tab( 'custom_html_widget' );
295
296
- $this->assertContains( 'Use the Custom HTML widget to add arbitrary HTML code to your widget areas.', $content );
+ $this->assertContains( 'Use the Custom HTML widget to add arbitrary HTML code to your widget areas.', $help_tab['content'] );
297
}
298
0 commit comments