Code Editor: Fix syntax error in PHP 5.2 and PHP 5.3 after [41855].

See #41871.


git-svn-id: https://develop.svn.wordpress.org/trunk@41858 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2017-10-13 19:42:40 +00:00
parent e6908acb82
commit b822b04f7e
1 changed files with 2 additions and 2 deletions

View File

@ -291,8 +291,8 @@ class Test_WP_Widget_Custom_HTML extends WP_UnitTestCase {
public function test_add_help_text() {
set_current_screen( 'widgets.php' );
WP_Widget_Custom_HTML::add_help_text();
$content = get_current_screen()->get_help_tab( 'custom_html_widget' )['content'];
$help_tab = get_current_screen()->get_help_tab( 'custom_html_widget' );
$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'] );
}
}