1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 02:57:15 +02:00

Issue #4206 - news category menu {active} shortcode typo fix.

This commit is contained in:
Cameron
2020-07-03 13:49:12 -07:00
parent 07f92d92cc
commit 23f6a52f08
4 changed files with 101 additions and 90 deletions

View File

@@ -188,6 +188,16 @@ while($row = $sql->fetch())
$this->assertEmpty($result);
}
public function testParseTemplateWithEvars()
{
$obj = new e_vars(array('ACTIVE' => "yes"));
$result = $this->tp->parseTemplate('<div>something {ACTIVE}</div>', true, null, $obj);
$expected = '<div>something yes</div>';
$this->assertEquals($expected, $result);
}
/*
public function testCreateConstants()
{