aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-05-07 08:56:25 +0000
committerMario <mario@mariovavti.com>2024-05-07 08:56:25 +0000
commit9dd63db736819ba15fd75821a8ea520f68a54ee3 (patch)
treee4657814ebbad89b411e29131d504b572c51a4e9
parentf74922db39df383d205fdcd0f25f6690af5b6c2f (diff)
downloadvolse-hubzilla-9dd63db736819ba15fd75821a8ea520f68a54ee3.tar.gz
volse-hubzilla-9dd63db736819ba15fd75821a8ea520f68a54ee3.tar.bz2
volse-hubzilla-9dd63db736819ba15fd75821a8ea520f68a54ee3.zip
add tests
-rw-r--r--tests/unit/includes/BBCodeTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/includes/BBCodeTest.php b/tests/unit/includes/BBCodeTest.php
index 34e127a30..887374c13 100644
--- a/tests/unit/includes/BBCodeTest.php
+++ b/tests/unit/includes/BBCodeTest.php
@@ -134,6 +134,10 @@ class BBCodeTest extends UnitTestCase {
'list with linebreaks \r\n in text' => [
"some text\r\n[list]\r\n[*] item1\r\nsome text[*] item2\r\nsome text[/list]\r\nsome more text",
'some text<br /><ul class="listbullet"><li> item1<br />some text<li> item2<br />some text</ul>some more text'
+ ],
+ 'del tag' => [
+ 'some [s]strike through[/s] text',
+ 'some <del>strike through</del> text'
]
];
}
@@ -254,6 +258,10 @@ class BBCodeTest extends UnitTestCase {
'double nested list without closing li' => [
'<ul><li>list 1<li>list 2<li>list 3<ul><li>list 1<li>list 2<li>list 3<ul><li>list 1<li>list 2<li>list 3</ul></ul></ul>',
'[list][*]list 1[*]list 2[*]list 3[list][*]list 1[*]list 2[*]list 3[list][*]list 1[*]list 2[*]list 3[/list][/list][/list]'
+ ],
+ 'del tag' => [
+ 'some <del>strike through</del> text',
+ 'some [s]strike through[/s] text'
]
];
}