replace.test

File

drupal/core/vendor/twig/twig/test/Twig/Tests/Fixtures/filters/replace.test
View source
--TEST--
"replace" filter
--TEMPLATE--
{{ "I like %this% and %that%."|replace({'%this%': "foo", '%that%': "bar"}) }}
--DATA--
return array()
--EXPECT--
I like foo and bar.