-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Prevent template compilation in inheritance test
This is an ugly workaround to prevent the interfering runtime cache until #975 is resolved. Currently, subsequent test cases are successful even if the rendering is modified to not inherit ViewHelper namespaces to sub templates because they re-use the "in-memory" template classes from previous tests. As there is currently no way to configure this, we need to use the ugly f:cache.disable ViewHelper in the affected template to get robust testing results.
- Loading branch information
Showing
4 changed files
with
11 additions
and
14 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
1 change: 1 addition & 0 deletions
1
tests/Functional/Fixtures/Layouts/NamespaceInheritanceLayout.html
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<f:cache.disable /> | ||
<test:tagBasedTest location="Layout" /> | ||
|
||
<f:render section="Main" /> | ||
|
1 change: 1 addition & 0 deletions
1
tests/Functional/Fixtures/Partials/NamespaceInheritanceNestedPartial.html
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
<f:cache.disable /> | ||
<test:tagBasedTest location="NestedPartial" /> |
1 change: 1 addition & 0 deletions
1
tests/Functional/Fixtures/Partials/NamespaceInheritancePartial.html
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
<f:cache.disable /> | ||
<f:render partial="NamespaceInheritanceNestedPartial" /> | ||
<test:tagBasedTest location="Partial" /> |