1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-13 22:14:51 +02:00

e_parse::parseTemplate() behavior clarification

New tests cover the behavior described in
https://github.com/e107inc/e107/issues/3547
This commit is contained in:
Deltik
2018-11-09 16:52:37 -06:00
parent eec2feb8b3
commit 48654804bd
2 changed files with 63 additions and 3 deletions

View File

@@ -118,6 +118,9 @@
);
}
/**
* @see https://github.com/e107inc/e107/issues/3547
*/
public function testBanner()
{
@@ -130,7 +133,6 @@
$tp = e107::getParser();
// XXX: Contradicts https://github.com/e107inc/e107/issues/3547#issuecomment-437163733
$result = $tp->parseTemplate("{BANNER=e107promo}",true);
$this->assertContains("<img class='e-banner img-responsive img-fluid'", $result);