aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-08-02 07:17:54 +0000
committerMario <mario@mariovavti.com>2024-08-02 07:17:54 +0000
commit61c03e4b4e1afd7593a57119198dd38845485887 (patch)
tree60cec6327ee4ae0faef577e1dafb8b83c3bb89ba /tests
parentdd0be272d0f645a0c2643da2552755444bb0e545 (diff)
downloadvolse-hubzilla-61c03e4b4e1afd7593a57119198dd38845485887.tar.gz
volse-hubzilla-61c03e4b4e1afd7593a57119198dd38845485887.tar.bz2
volse-hubzilla-61c03e4b4e1afd7593a57119198dd38845485887.zip
fix html2bbcode table and add test
Diffstat (limited to 'tests')
-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 daa66bf72..30ea00ba6 100644
--- a/tests/unit/includes/BBCodeTest.php
+++ b/tests/unit/includes/BBCodeTest.php
@@ -266,6 +266,10 @@ class BBCodeTest extends UnitTestCase {
'del tag' => [
'some <del>strike through</del> text',
'some [s]strike through[/s] text'
+ ],
+ 'table' => [
+ '<table><tr><td>row1, col1</td><td>row1, col2</td></tr><tr><td>row2, col1</td><td>row2, col2</td></tr></table>',
+ '[table][tr][td]row1, col1[/td][td]row1, col2[/td][/tr][tr][td]row2, col1[/td][td]row2, col2[/td][/tr][/table]'
]
];
}