@@ -26,14 +26,15 @@ test(function() { // with subdir templates
2626});
2727
2828
29- test (function () { // without subdir templates
29+ test (function () { // without subdir templates & parent presenter
3030 $ presenter = new Presenter2 ;
3131 $ presenter ->setParent (NULL , 'Two ' );
3232
3333 Assert::same ( array (
3434 __DIR__ . '/templates/Two/@layout.latte ' ,
3535 __DIR__ . '/templates/Two.@layout.latte ' ,
3636 __DIR__ . '/templates/@layout.latte ' ,
37+ __DIR__ . DIRECTORY_SEPARATOR . 'one/templates/@layout.latte ' ,
3738 ), $ presenter ->formatLayoutTemplateFiles () );
3839});
3940
@@ -52,7 +53,7 @@ test(function() { // with module & subdir templates
5253});
5354
5455
55- test (function () { // with module & without subdir templates
56+ test (function () { // with module & without subdir templates & parent presenter
5657 $ presenter = new Presenter2 ;
5758 $ presenter ->setParent (NULL , 'Module:SubModule:Two ' );
5859
@@ -62,5 +63,6 @@ test(function() { // with module & without subdir templates
6263 __DIR__ . '/templates/@layout.latte ' ,
6364 dirname (__DIR__ ) . '/templates/@layout.latte ' ,
6465 dirname (dirname (__DIR__ )) . '/templates/@layout.latte ' ,
66+ __DIR__ . DIRECTORY_SEPARATOR . 'one/templates/@layout.latte ' ,
6567 ), $ presenter ->formatLayoutTemplateFiles () );
6668});
0 commit comments