mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-06 14:54:33 -07:00
* feat(language): add new language variable for migration file and enhance template fallback logic - Introduced a new language variable 'MIGRATIONS_FILE' to improve migration management clarity. - Updated template handling to provide graceful fallbacks for missing language and regular variables, ensuring better user experience and debugging capabilities. - Added comprehensive unit tests to validate the new fallback logic and ensure existing functionality remains intact. * refactor(tests): remove debugging test for compiled template output - Removed the test case that debugged compiled output for troubleshooting in the TemplateGracefulFallbackTest. - This change streamlines the test suite by focusing on essential functionality, specifically the handling of missing language variables. * feat(tests): introduce executeTemplate function for streamlined template execution - Added a new helper function `executeTemplate` to encapsulate the logic for executing compiled templates, improving code readability and reducing duplication in unit tests. - Updated existing tests in `TemplateGracefulFallbackTest.php` to utilize the new function, ensuring consistent handling of template execution and variable scope. - Enhanced test coverage by adding edge case scenarios for variable handling, including special characters, empty values, and nested braces. |
||
---|---|---|
.. | ||
html | ||
main.php |