aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/templates
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-09-26 22:33:52 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-09-26 22:33:52 +0200
commite00a1548821ce500fbe5a39416c7b2e8619112a1 (patch)
tree7c1c33089ce2fe22d9ef51aa856a6838c284bd43 /tests/template/templates
parentf21003f977e7f9c2b414885ad5e05333dbdcd0ac (diff)
downloadforums-e00a1548821ce500fbe5a39416c7b2e8619112a1.tar
forums-e00a1548821ce500fbe5a39416c7b2e8619112a1.tar.gz
forums-e00a1548821ce500fbe5a39416c7b2e8619112a1.tar.bz2
forums-e00a1548821ce500fbe5a39416c7b2e8619112a1.tar.xz
forums-e00a1548821ce500fbe5a39416c7b2e8619112a1.zip
[ticket/15905] Add tests for twig extensions
PHPBB3-15905
Diffstat (limited to 'tests/template/templates')
-rw-r--r--tests/template/templates/avatar_user.html1
-rw-r--r--tests/template/templates/extension_config_test.html1
-rw-r--r--tests/template/templates/extension_username_test.html1
3 files changed, 3 insertions, 0 deletions
diff --git a/tests/template/templates/avatar_user.html b/tests/template/templates/avatar_user.html
new file mode 100644
index 0000000000..bd0b960611
--- /dev/null
+++ b/tests/template/templates/avatar_user.html
@@ -0,0 +1 @@
+{{ avatar('user', row, alt, ignore_config, lazy) }}
diff --git a/tests/template/templates/extension_config_test.html b/tests/template/templates/extension_config_test.html
new file mode 100644
index 0000000000..0f12ab2672
--- /dev/null
+++ b/tests/template/templates/extension_config_test.html
@@ -0,0 +1 @@
+{{ config(config_name) }}
diff --git a/tests/template/templates/extension_username_test.html b/tests/template/templates/extension_username_test.html
new file mode 100644
index 0000000000..a78bf0df62
--- /dev/null
+++ b/tests/template/templates/extension_username_test.html
@@ -0,0 +1 @@
+{{ username(mode, user_id, username, user_colour, guest_username, custom_profile_url) }}