aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/includes
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-02-13 13:01:09 +0000
committerMario <mario@mariovavti.com>2024-02-13 13:01:09 +0000
commit1fa59df6f329e8576f9b331a9d05d475e07e6930 (patch)
treed18dc15ce6240521839d3a6d475dc6382515ed86 /tests/unit/includes
parent2c93294eea4f6daa7e449c13f61b8398ac937aa0 (diff)
downloadvolse-hubzilla-1fa59df6f329e8576f9b331a9d05d475e07e6930.tar.gz
volse-hubzilla-1fa59df6f329e8576f9b331a9d05d475e07e6930.tar.bz2
volse-hubzilla-1fa59df6f329e8576f9b331a9d05d475e07e6930.zip
Add test for a paragraph with a mention and some text
Diffstat (limited to 'tests/unit/includes')
-rw-r--r--tests/unit/includes/BBCodeTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/includes/BBCodeTest.php b/tests/unit/includes/BBCodeTest.php
index 035bcbdc7..9fb7ffc2d 100644
--- a/tests/unit/includes/BBCodeTest.php
+++ b/tests/unit/includes/BBCodeTest.php
@@ -53,6 +53,10 @@ class BBCodeTest extends UnitTestCase {
"<pre><code>some\n indented\ncode</code></pre>",
"[code]some\n indented\ncode[/code]"
],
+ 'paragraph with a mention and some text' => [
+ '<p><span class="h-card" translate="no"><a href="https://example.org/@profile" class="u-url mention">@<span>profile</span></a></span> some content</p>',
+ '[url=https://example.org/@profile]@profile[/url] some content'
+ ]
];
}
}