X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Fformatter%2FBookmarkMarkdownFormatterTest.php;h=ab6b40809ab4563337142b03ded08261a893b065;hb=a5a9cf23acd1248585173aa32757d9720b5f2d62;hp=0ca7f80202833e48806fcb8ab98d23e38ee86be8;hpb=3fb29fdda04ca86e04422d49b86cf646d53c4f9d;p=github%2Fshaarli%2FShaarli.git
diff --git a/tests/formatter/BookmarkMarkdownFormatterTest.php b/tests/formatter/BookmarkMarkdownFormatterTest.php
index 0ca7f802..ab6b4080 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,11 +25,11 @@ 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);
- $this->formatter = new BookmarkMarkdownFormatter($this->conf);
+ $this->formatter = new BookmarkMarkdownFormatter($this->conf, true);
}
/**
@@ -125,7 +125,7 @@ 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 .= '