-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #4187 Fix integration tests when a test has more than on data/exp…
…ect section and deprecations (fabpot) This PR was merged into the 3.x branch. Discussion ---------- Fix integration tests when a test has more than on data/expect section and deprecations Fixes #4186 As deprecations are emitted at compile time, we need to make sure templates are always compiled even when we have more than one data/expect section (in which case the templates are the same). The trick here is to add some whitespace at the end of the template. Commits ------- a5dc02b Fix integration tests when a test has more than on data/expect section and deprecations
- Loading branch information
Showing
4 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--TEST-- | ||
Functions can be deprecated_function | ||
--DEPRECATION-- | ||
Since foo/bar 1.1: Twig Function "deprecated_function" is deprecated. Use "not_deprecated_function" instead in index.twig at line 2. | ||
Since foo/bar 1.1: Twig Function "deprecated_function" is deprecated. Use "not_deprecated_function" instead in index.twig at line 4. | ||
--TEMPLATE-- | ||
{{ deprecated_function() }} | ||
|
||
{{ deprecated_function() }} | ||
--DATA-- | ||
return [] | ||
--EXPECT-- | ||
foo | ||
|
||
foo | ||
--DATA-- | ||
return [] | ||
--EXPECT-- | ||
foo | ||
|
||
foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters