summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Wisselink <wisskid@users.noreply.github.com>2024-05-29 15:32:47 +0200
committerGitHub <noreply@github.com>2024-05-29 15:32:47 +0200
commit2a87c65994811a1eb26a59f58ecbf663445e8739 (patch)
tree6636c14411902e19515de1e2b455eb968944e34c /tests
parentcdee97d3f1dff597be8583625adb42710da2c885 (diff)
downloadsmarty-2a87c65994811a1eb26a59f58ecbf663445e8739.tar.gz
smarty-2a87c65994811a1eb26a59f58ecbf663445e8739.tar.bz2
smarty-2a87c65994811a1eb26a59f58ecbf663445e8739.zip
implemented and documented prependTemplateDir. (#1025)
Diffstat (limited to 'tests')
-rw-r--r--tests/UnitTests/ResourceTests/FileIndexed/FileResourceIndexedTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/UnitTests/ResourceTests/FileIndexed/FileResourceIndexedTest.php b/tests/UnitTests/ResourceTests/FileIndexed/FileResourceIndexedTest.php
index 9065c10d..4bba6a27 100644
--- a/tests/UnitTests/ResourceTests/FileIndexed/FileResourceIndexedTest.php
+++ b/tests/UnitTests/ResourceTests/FileIndexed/FileResourceIndexedTest.php
@@ -91,4 +91,13 @@ class FileResourceIndexedTest extends PHPUnit_Smarty
$this->assertNotEquals($tpl->getCached()->filepath, $tpl2->getCached()->filepath);
}
+
+ public function testPrependTemplatePath()
+ {
+ $this->smarty->setTemplateDir(__DIR__ . '/templates');
+ $this->smarty->prependTemplateDir(__DIR__ . '/templates_4');
+ $tpl = $this->smarty->createTemplate('dirname.tpl');
+ $this->assertEquals('templates_4', $this->smarty->fetch($tpl));
+ }
+
}