Add tests

This commit is contained in:
Fabien Potencier
2025-02-28 08:52:34 +01:00
parent 53facb74c1
commit da64c42dc2
+25
View File
@@ -416,6 +416,31 @@ EOHTML,
],
'index', 3,
],
// error occurs in an embed tag
[
[
'index' => "
{% embed 'base' %}
{% endembed %}",
'base' => '{% block foo %}{{ foo.bar }}{% endblock %}',
],
'base', 1,
],
// error occurs in an overridden block from an embed tag
[
[
'index' => "
{% embed 'base' %}
{% block foo %}
{{ foo.bar }}
{% endblock %}
{% endembed %}",
'base' => '{% block foo %}{% endblock %}',
],
'index', 4,
],
];
}