aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins/PluginMarkdownTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-08-13 10:42:27 +0200
committerArthurHoaro <arthur@hoa.ro>2018-08-13 10:55:48 +0200
commita120fb2977331e0f7d7ffe05861ba179fdae8764 (patch)
treedb25468102f9deb9bff0ebe0efaa909810efad40 /tests/plugins/PluginMarkdownTest.php
parenta4f0509a77a39d1ac834d4967e3e8f245de6d68d (diff)
downloadShaarli-a120fb2977331e0f7d7ffe05861ba179fdae8764.tar.gz
Shaarli-a120fb2977331e0f7d7ffe05861ba179fdae8764.tar.zst
Shaarli-a120fb2977331e0f7d7ffe05861ba179fdae8764.zip
Add OpenGraph meta tags on permalink page
Includes: - og:title - og:type -> article - og:image -> if there is a thumbnail - og:url -> permalink - og:description -> first 300 chars of raw description - article:published_time - article:modified_time - article:tag -> one OG meta tag for each shaare tag Fixes #258
Diffstat (limited to 'tests/plugins/PluginMarkdownTest.php')
-rw-r--r--tests/plugins/PluginMarkdownTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/plugins/PluginMarkdownTest.php b/tests/plugins/PluginMarkdownTest.php
index b31e817f..31c1f8b7 100644
--- a/tests/plugins/PluginMarkdownTest.php
+++ b/tests/plugins/PluginMarkdownTest.php
@@ -47,6 +47,8 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase
47 $data = hook_markdown_render_linklist($data, $this->conf); 47 $data = hook_markdown_render_linklist($data, $this->conf);
48 $this->assertNotFalse(strpos($data['links'][0]['description'], '<h1>')); 48 $this->assertNotFalse(strpos($data['links'][0]['description'], '<h1>'));
49 $this->assertNotFalse(strpos($data['links'][0]['description'], '<p>')); 49 $this->assertNotFalse(strpos($data['links'][0]['description'], '<p>'));
50
51 $this->assertEquals($markdown, $data['links'][0]['description_src']);
50 } 52 }
51 53
52 /** 54 /**