Closed Gerych1984 closed 8 months ago
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ✔️ |
Breaks BC? | ❌ |
Introduction of a 'WithTheme' Method
A new method has been added into two of the project files, ViewInterface
and ViewTrait
. This function, named withTheme
, allows a specific theme to be applied within the application by passing this theme into the function. The output of this function is a new version of the view with the chosen theme applied.
Testing of the 'WithTheme' Method
For ensuring reliability and correctness, a test case has been established for the 'withTheme' method. This specific test, which resides within the ViewTest.php
file, verifies that when a theme is applied through the 'withTheme' method, it accurately generates a fresh instance of the view with the chosen theme. Furthermore, it double-checks to ensure that the initial view remains unmodified.
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
b44649a
) 99.74% compared to head (b4a2b80
) 99.75%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
👍