diff options
Diffstat (limited to 'tests/functional/test_blocks')
-rw-r--r-- | tests/functional/test_blocks/Test.php | 18 | ||||
-rw-r--r-- | tests/functional/test_blocks/main.tpl | 3 | ||||
-rw-r--r-- | tests/functional/test_blocks/test.tpl | 2 | ||||
-rw-r--r-- | tests/functional/test_blocks/want | 3 |
4 files changed, 26 insertions, 0 deletions
diff --git a/tests/functional/test_blocks/Test.php b/tests/functional/test_blocks/Test.php new file mode 100644 index 0000000..05e8e09 --- /dev/null +++ b/tests/functional/test_blocks/Test.php @@ -0,0 +1,18 @@ +<?php + +namespace tests\functional\test_blocks; + +use kch42\ste\STECore; +use tests\functional\BaseTest; + +class Test extends BaseTest +{ + protected function getDirectory(): string + { + return __DIR__; + } + + protected function setUpSte(STECore $ste): void + { + } +} diff --git a/tests/functional/test_blocks/main.tpl b/tests/functional/test_blocks/main.tpl new file mode 100644 index 0000000..a9608bd --- /dev/null +++ b/tests/functional/test_blocks/main.tpl @@ -0,0 +1,3 @@ +Foo +<ste:block name="blk1">Bar</ste:block> +<ste:block name="blk2">Baz</ste:block>
\ No newline at end of file diff --git a/tests/functional/test_blocks/test.tpl b/tests/functional/test_blocks/test.tpl new file mode 100644 index 0000000..3d14e46 --- /dev/null +++ b/tests/functional/test_blocks/test.tpl @@ -0,0 +1,2 @@ +<ste:load name="main.tpl" /> +<ste:block name="blk1">Replaced</ste:block>
\ No newline at end of file diff --git a/tests/functional/test_blocks/want b/tests/functional/test_blocks/want new file mode 100644 index 0000000..640cfef --- /dev/null +++ b/tests/functional/test_blocks/want @@ -0,0 +1,3 @@ +Foo +Replaced +Baz |