diff --git a/projects/plugins/wpcomsh/tests/test-wpcomsh.php b/projects/plugins/wpcomsh/tests/test-wpcomsh.php
index 524d985812021..0357626a8f2c7 100644
--- a/projects/plugins/wpcomsh/tests/test-wpcomsh.php
+++ b/projects/plugins/wpcomsh/tests/test-wpcomsh.php
@@ -29,6 +29,7 @@ public function test_wpcomsh_make_content_clickable() {
$div_skip = '
https://wp.com
';
$custom_element = 'https://wp.com';
$custom_element_starts_with_pre = 'https://wp.com';
+ $link_inside_tag_inside_attr = "\n" . '';
$original_content = '' .
$script .
@@ -40,7 +41,8 @@ public function test_wpcomsh_make_content_clickable() {
$textarea .
$div_skip .
$custom_element .
- $custom_element_starts_with_pre;
+ $custom_element_starts_with_pre .
+ $link_inside_tag_inside_attr;
$expected_output = '' .
'' .
@@ -52,7 +54,8 @@ public function test_wpcomsh_make_content_clickable() {
'' .
'https://wp.com
' .
'https://wp.com' . // Made clickable
- 'https://wp.com'; // Made clickable even if it starts with `https://wp.com' . // Made clickable even if it starts with `'; // Don't make clickable if it's inside a tag inside an attribute.
$this->assertEquals( $expected_output, wpcomsh_make_content_clickable( $original_content ) );
}