From b822b04f7efdb3d290d96d35aaf86a8a9945ef1b Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 13 Oct 2017 19:42:40 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/widgets/custom-html-widget.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/widgets/custom-html-widget.php b/tests/phpunit/tests/widgets/custom-html-widget.php index 69623fbd65..1ab4439cb5 100644 --- a/tests/phpunit/tests/widgets/custom-html-widget.php +++ b/tests/phpunit/tests/widgets/custom-html-widget.php @@ -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'] ); } }