X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Fformatter%2FBookmarkMarkdownFormatterTest.php;h=32f7b444881e868b9c8067d1980e13e0a603dcb7;hb=9ef8555ad298668bcb8537ccdd2ab6560f44177f;hp=f1f12c04efa6ef3f82e9a1d4ba76a280c1e0ce71;hpb=a39acb2518f272df8a601af72c13eabe2719dcb8;p=github%2Fshaarli%2FShaarli.git
diff --git a/tests/formatter/BookmarkMarkdownFormatterTest.php b/tests/formatter/BookmarkMarkdownFormatterTest.php
index f1f12c04..32f7b444 100644
--- a/tests/formatter/BookmarkMarkdownFormatterTest.php
+++ b/tests/formatter/BookmarkMarkdownFormatterTest.php
@@ -3,9 +3,9 @@
namespace Shaarli\Formatter;
use DateTime;
-use PHPUnit\Framework\TestCase;
use Shaarli\Bookmark\Bookmark;
use Shaarli\Config\ConfigManager;
+use Shaarli\TestCase;
/**
* Class BookmarkMarkdownFormatterTest
@@ -25,7 +25,7 @@ class BookmarkMarkdownFormatterTest extends TestCase
/**
* Initialize formatter instance.
*/
- public function setUp()
+ protected function setUp(): void
{
copy('tests/utils/config/configJson.json.php', self::$testConf .'.json.php');
$this->conf = new ConfigManager(self::$testConf);
@@ -125,13 +125,56 @@ class BookmarkMarkdownFormatterTest extends TestCase
$description .= 'This a <strong>description</strong>
'. PHP_EOL;
$url = 'https://sub.domain.tld?query=here&for=real#hash';
$description .= 'text '. $url .' more text
'. PHP_EOL;
- $description .= 'Also, there is an #hashtag added
'. PHP_EOL;
+ $description .= 'Also, there is an #hashtag added
'. PHP_EOL;
$description .= 'A N D KEEP SPACES ! ';
$description .= '
';
+ $description .= 'This a <strong>description</strong>
' .
+ PHP_EOL;
+ $url = 'https://sub.domain.tld?query=here&for=real#hash';
+ $highlighted = 'https://sub.domain.tld';
+ $highlighted .= '?query=here&for=real#hash';
+ $description .= 'text '. $highlighted .' more text
'. PHP_EOL;
+ $description .= 'Also, there is an #hasht' .
+ 'ag added
'. PHP_EOL;
+ $description .= 'A N D KEEP SPACES !
' . PHP_EOL;
+ $description .= 'And ' .
+ 'yet another link';
+ $description .= '