@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | { |
82 | 82 | ShortcodeParser::get('default')->register( |
83 | 83 | 'test_shortcode', |
84 | - function () { |
|
84 | + function() { |
|
85 | 85 | return 'bit of test shortcode output'; |
86 | 86 | } |
87 | 87 | ); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | 'ExternalURL' => 'https://google.com/search?q=unit&test' |
120 | 120 | ]); |
121 | 121 | $page->write(); |
122 | - $content = '[sitetree_link,id=' . $page->ID . ']test link[/sitetree_link]'; |
|
122 | + $content = '[sitetree_link,id='.$page->ID.']test link[/sitetree_link]'; |
|
123 | 123 | $expected = '<a href="https://google.com/search?q=unit&test">test link</a>'; |
124 | 124 | $output = DBHTMLText::create('Test', ['shortcodes' => true]) |
125 | 125 | ->setValue($content) |