This commit is contained in:
bzick
2016-06-09 16:00:18 +03:00
parent a910b71a81
commit 1e724e4c70
3 changed files with 23 additions and 10 deletions

View File

@@ -116,6 +116,19 @@ class FenomTest extends \Fenom\TestCase
$this->assertSame("Custom template (new)", $this->fenom->fetch('custom.tpl', array()));
}
/**
* @group dev
*/
public function testCompileIdAndName()
{
$this->fenom->setCompileId("iddqd.");
$this->tpl('custom.tpl', 'Custom template');
$this->assertSame("Custom template", $this->fenom->fetch('custom.tpl', array()));
$compile_name = $this->fenom->getCompileName('custom.tpl');
$this->assertFileExists($this->getCompilePath().'/'.$compile_name);
$this->assertStringStartsWith('iddqd.', $compile_name);
}
public function testSetModifier()
{
$this->fenom->addModifier("mymod", "myMod");