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.
This commit is contained in:
Yury Pikhtarev 2025-06-21 02:54:02 +04:00
commit 62037ea776
No known key found for this signature in database

View file

@ -103,17 +103,6 @@ afterEach(function () {
describe('Template Text Compilation - Graceful Fallback', function () { describe('Template Text Compilation - Graceful Fallback', function () {
it('debugs compiled output for troubleshooting', function () {
$template = '{L_MISSING_KEY}';
$compiled = $this->template->_compile_text($template);
// Show the actual compiled output for debugging
expect($compiled)->toBeString();
// Print the compiled code to understand the issue
error_log("Compiled template: " . $compiled);
});
it('shows missing language variables as original syntax', function () { it('shows missing language variables as original syntax', function () {
$template = '{L_MISSING_KEY}'; $template = '{L_MISSING_KEY}';
$compiled = $this->template->_compile_text($template); $compiled = $this->template->_compile_text($template);