From 0d135d3b4a97d023af164d3935c085f22727d3c0 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Fri, 9 Aug 2024 11:29:14 +0200 Subject: [PATCH] [Tests] Aligned deprecation message format with twig/twig ^3.11.0 --- .../filters/ez_data_attributes_serialize.test | 2 +- .../functions/ez_file_size/ez_file_size.test | 24 ++++++------- .../_fixtures/routing_functions/ez_path.test | 36 +++++++++---------- .../_fixtures/routing_functions/ez_route.test | 6 ++-- .../_fixtures/routing_functions/ez_url.test | 36 +++++++++---------- 5 files changed, 52 insertions(+), 52 deletions(-) diff --git a/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/filters/ez_data_attributes_serialize.test b/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/filters/ez_data_attributes_serialize.test index 7331ca65f7..ec2eefd0f6 100644 --- a/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/filters/ez_data_attributes_serialize.test +++ b/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/filters/ez_data_attributes_serialize.test @@ -1,7 +1,7 @@ --TEST-- "ez_data_attributes_serialize" filter --DEPRECATION-- -Twig Filter "ez_data_attributes_serialize" is deprecated since version 4.0. Use "ibexa_data_attributes_serialize" instead in index.twig at line 2. +Since 4.0: Twig Filter "ez_data_attributes_serialize" is deprecated. Use "ibexa_data_attributes_serialize" instead in index.twig at line 2. --TEMPLATE-- Article --DATA-- diff --git a/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/functions/ez_file_size/ez_file_size.test b/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/functions/ez_file_size/ez_file_size.test index 1b855c5ff3..726e6b2c7c 100644 --- a/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/functions/ez_file_size/ez_file_size.test +++ b/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/functions/ez_file_size/ez_file_size.test @@ -1,18 +1,18 @@ --TEST-- "twig" filter --DEPRECATION-- -Twig Filter "ez_file_size" is deprecated since version 4.0. Use "ibexa_file_size" instead in index.twig at line 2. -Twig Filter "ez_file_size" is deprecated since version 4.0. Use "ibexa_file_size" instead in index.twig at line 3. -Twig Filter "ez_file_size" is deprecated since version 4.0. Use "ibexa_file_size" instead in index.twig at line 4. -Twig Filter "ez_file_size" is deprecated since version 4.0. Use "ibexa_file_size" instead in index.twig at line 5. -Twig Filter "ez_file_size" is deprecated since version 4.0. Use "ibexa_file_size" instead in index.twig at line 6. -Twig Filter "ez_file_size" is deprecated since version 4.0. Use "ibexa_file_size" instead in index.twig at line 7. -Twig Filter "ez_file_size" is deprecated since version 4.0. Use "ibexa_file_size" instead in index.twig at line 8. -Twig Filter "ez_file_size" is deprecated since version 4.0. Use "ibexa_file_size" instead in index.twig at line 9. -Twig Filter "ez_file_size" is deprecated since version 4.0. Use "ibexa_file_size" instead in index.twig at line 10. -Twig Filter "ez_file_size" is deprecated since version 4.0. Use "ibexa_file_size" instead in index.twig at line 11. -Twig Filter "ez_file_size" is deprecated since version 4.0. Use "ibexa_file_size" instead in index.twig at line 12. -Twig Filter "ez_file_size" is deprecated since version 4.0. Use "ibexa_file_size" instead in index.twig at line 13. +Since 4.0: Twig Filter "ez_file_size" is deprecated. Use "ibexa_file_size" instead in index.twig at line 2. +Since 4.0: Twig Filter "ez_file_size" is deprecated. Use "ibexa_file_size" instead in index.twig at line 3. +Since 4.0: Twig Filter "ez_file_size" is deprecated. Use "ibexa_file_size" instead in index.twig at line 4. +Since 4.0: Twig Filter "ez_file_size" is deprecated. Use "ibexa_file_size" instead in index.twig at line 5. +Since 4.0: Twig Filter "ez_file_size" is deprecated. Use "ibexa_file_size" instead in index.twig at line 6. +Since 4.0: Twig Filter "ez_file_size" is deprecated. Use "ibexa_file_size" instead in index.twig at line 7. +Since 4.0: Twig Filter "ez_file_size" is deprecated. Use "ibexa_file_size" instead in index.twig at line 8. +Since 4.0: Twig Filter "ez_file_size" is deprecated. Use "ibexa_file_size" instead in index.twig at line 9. +Since 4.0: Twig Filter "ez_file_size" is deprecated. Use "ibexa_file_size" instead in index.twig at line 10. +Since 4.0: Twig Filter "ez_file_size" is deprecated. Use "ibexa_file_size" instead in index.twig at line 11. +Since 4.0: Twig Filter "ez_file_size" is deprecated. Use "ibexa_file_size" instead in index.twig at line 12. +Since 4.0: Twig Filter "ez_file_size" is deprecated. Use "ibexa_file_size" instead in index.twig at line 13. --TEMPLATE-- {{ 10|ez_file_size( 2 ) }} {{ 1024|ez_file_size( 0 ) }} diff --git a/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/routing_functions/ez_path.test b/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/routing_functions/ez_path.test index c139633803..3a26493fc4 100644 --- a/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/routing_functions/ez_path.test +++ b/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/routing_functions/ez_path.test @@ -1,24 +1,24 @@ --TEST-- "ez_path" function --DEPRECATION-- -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 2. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 3. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 4. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 5. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 6. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 7. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 8. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 9. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 10. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 11. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 12. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 13. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 14. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 15. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 16. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 17. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 18. -Twig Function "ez_path" is deprecated since version 4.0. Use "ibexa_path" instead in index.twig at line 19. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 2. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 3. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 4. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 5. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 6. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 7. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 8. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 9. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 10. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 11. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 12. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 13. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 14. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 15. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 16. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 17. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 18. +Since 4.0: Twig Function "ez_path" is deprecated. Use "ibexa_path" instead in index.twig at line 19. --TEMPLATE-- {{ ez_path(location) }} {{ ez_path(location, {}, true) }} diff --git a/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/routing_functions/ez_route.test b/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/routing_functions/ez_route.test index 20e6a5aba1..084741ded6 100644 --- a/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/routing_functions/ez_route.test +++ b/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/routing_functions/ez_route.test @@ -1,9 +1,9 @@ --TEST-- "twig" filter --DEPRECATION-- -Twig Function "ez_route" is deprecated since version 4.0. Use "ibexa_route" instead in index.twig at line 2. -Twig Function "ez_route" is deprecated since version 4.0. Use "ibexa_route" instead in index.twig at line 3. -Twig Function "ez_route" is deprecated since version 4.0. Use "ibexa_route" instead in index.twig at line 4. +Since 4.0: Twig Function "ez_route" is deprecated. Use "ibexa_route" instead in index.twig at line 2. +Since 4.0: Twig Function "ez_route" is deprecated. Use "ibexa_route" instead in index.twig at line 3. +Since 4.0: Twig Function "ez_route" is deprecated. Use "ibexa_route" instead in index.twig at line 4. --TEMPLATE-- {% set route_ref1 = ez_route( "foo_route" ) %} {% set route_ref2 = ez_route( "bar_route", {"some": "thing"} ) %} diff --git a/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/routing_functions/ez_url.test b/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/routing_functions/ez_url.test index 11fc817e47..b63e601cb6 100644 --- a/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/routing_functions/ez_url.test +++ b/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/routing_functions/ez_url.test @@ -1,24 +1,24 @@ --TEST-- "ez_url" function --DEPRECATION-- -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 2. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 3. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 4. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 5. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 6. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 7. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 8. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 9. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 10. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 11. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 12. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 13. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 14. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 15. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 16. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 17. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 18. -Twig Function "ez_url" is deprecated since version 4.0. Use "ibexa_url" instead in index.twig at line 19. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 2. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 3. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 4. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 5. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 6. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 7. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 8. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 9. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 10. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 11. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 12. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 13. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 14. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 15. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 16. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 17. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 18. +Since 4.0: Twig Function "ez_url" is deprecated. Use "ibexa_url" instead in index.twig at line 19. --TEMPLATE-- {{ ez_url(location) }} {{ ez_url(location, {}, true) }}