aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-11-28 21:11:48 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-11-28 21:11:48 +0100
commitac6676a1445bacf0df51c9ebaf91fa69f4535ba0 (patch)
treec26b0b652bf21c2cc7ed761e8c2225177804712c /tests
parent3986273fdb16844ff67f61ef7fb294f0d11d2e18 (diff)
parent03e15166c72be6862fb1d3ca3a178196df80f971 (diff)
downloadforums-ac6676a1445bacf0df51c9ebaf91fa69f4535ba0.tar
forums-ac6676a1445bacf0df51c9ebaf91fa69f4535ba0.tar.gz
forums-ac6676a1445bacf0df51c9ebaf91fa69f4535ba0.tar.bz2
forums-ac6676a1445bacf0df51c9ebaf91fa69f4535ba0.tar.xz
forums-ac6676a1445bacf0df51c9ebaf91fa69f4535ba0.zip
Merge branch '3.2.x' into 3.3.x
Diffstat (limited to 'tests')
-rw-r--r--tests/text_formatter/s9e/bbcode_merger_test.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/text_formatter/s9e/bbcode_merger_test.php b/tests/text_formatter/s9e/bbcode_merger_test.php
index 815539056b..5ec0c91971 100644
--- a/tests/text_formatter/s9e/bbcode_merger_test.php
+++ b/tests/text_formatter/s9e/bbcode_merger_test.php
@@ -275,6 +275,22 @@ class phpbb_textformatter_s9e_bbcode_merger_test extends phpbb_test_case
</table>
<p> </p>'
],
+ [
+ // https://www.phpbb.com/community/viewtopic.php?f=438&t=2530451
+ '[issue]{NUMBER}[/issue]',
+ '<a href="/default/issues/{NUMBER}"> Issue #{NUMBER}</a>',
+
+ '[issue={SIMPLETEXT}]{NUMBER}[/issue]',
+ '<a href="/{SIMPLETEXT}/issues/{NUMBER}"> Issue #{NUMBER} ({SIMPLETEXT})</a>',
+
+ '[issue={SIMPLETEXT?}]{NUMBER}[/issue]',
+ '<a>
+ <xsl:choose>
+ <xsl:when test="@issue"><xsl:attribute name="href">/<xsl:value-of select="@issue"/>/issues/<xsl:value-of select="@content"/></xsl:attribute> Issue #<xsl:value-of select="@content"/> (<xsl:value-of select="@issue"/>)</xsl:when>
+ <xsl:otherwise><xsl:attribute name="href">/default/issues/<xsl:value-of select="@content"/></xsl:attribute> Issue #<xsl:value-of select="@content"/></xsl:otherwise>
+ </xsl:choose>
+ </a>'
+ ],
];
}
}