aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/includes/BBCodeTest.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-05-03 10:23:36 +0200
committerMario <mario@mariovavti.com>2024-05-03 10:23:36 +0200
commit3a50a0b71572d0f5cc5c5aed1df8592c3e9e4dce (patch)
tree2791fadba60123f01d93ec27f3a9ef162e850af6 /tests/unit/includes/BBCodeTest.php
parentb25662e183fa800d13908e707e0a3f33131b9ea8 (diff)
downloadvolse-hubzilla-3a50a0b71572d0f5cc5c5aed1df8592c3e9e4dce.tar.gz
volse-hubzilla-3a50a0b71572d0f5cc5c5aed1df8592c3e9e4dce.tar.bz2
volse-hubzilla-3a50a0b71572d0f5cc5c5aed1df8592c3e9e4dce.zip
deal with li tags earlier seems to be more straight forward also add test for li without closing tag
Diffstat (limited to 'tests/unit/includes/BBCodeTest.php')
-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 e1fba9fbc..2697c5069 100644
--- a/tests/unit/includes/BBCodeTest.php
+++ b/tests/unit/includes/BBCodeTest.php
@@ -238,6 +238,14 @@ class BBCodeTest extends UnitTestCase {
'nested list' => [
'<ul><li>list 1</li><li>list 2</li><li>list 3</li><ul><li>list 1</li><li>list 2</li><li>list 3</li></ul></ul>',
'[list][*]list 1[*]list 2[*]list 3[list][*]list 1[*]list 2[*]list 3[/list][/list]'
+ ],
+ 'list without closing li' => [
+ '<ul><li>list 1<li>list 2<li>list 3</ul>',
+ '[list][*]list 1[*]list 2[*]list 3[/list]'
+ ],
+ '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></ul>',
+ '[list][*]list 1[*]list 2[*]list 3[list][*]list 1[*]list 2[*]list 3[/list][/list]'
]
];
}