From 02cf7f526e7de9871e8906c5f4a29024e3c5692f Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Tue, 1 Oct 2019 04:12:15 +0000 Subject: [PATCH] Shortcodes: Improve handling from `shortcode_parse_attts()`. Added missing @ticket for #47863 on `data_shortcode_parse_atts()` Also cleans up some linter fixes that were missed. Props garrett-eclipse, whyisjake. ixes #47863. git-svn-id: https://develop.svn.wordpress.org/trunk@46370 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/shortcode.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/tests/shortcode.php b/tests/phpunit/tests/shortcode.php index 82c68a08a3..f219a4eb0d 100644 --- a/tests/phpunit/tests/shortcode.php +++ b/tests/phpunit/tests/shortcode.php @@ -740,7 +740,7 @@ EOF; } function data_whole_posts() { - require_once( DIR_TESTDATA . '/formatting/whole-posts.php' ); + require_once DIR_TESTDATA . '/formatting/whole-posts.php'; return data_whole_posts(); } @@ -992,6 +992,8 @@ EOF; /** * Data provider for `test_shortcode_parse_atts()`. * + * @ticket 47863 + * * @return array { * @type array { * @type string $text A single shortcode format or key/value pair string. @@ -1057,19 +1059,19 @@ EOF; array( '[unittest link=https://unit.test/ /]', array( - 'link' => 'https://unit.test/', + 'link' => 'https://unit.test/', ), ), array( '[unittest link=https://unit.test/ ]', array( - 'link' => 'https://unit.test/', + 'link' => 'https://unit.test/', ), ), array( '[unittest link=https://unit.test/]', array( - 'link' => 'https://unit.test', + 'link' => 'https://unit.test', ), ), array(