Change desktop and mobile directives to reference static Context method

This commit is contained in:
Kijin Sung 2023-10-21 13:35:24 +09:00
parent fbc5564247
commit 5b47151440
3 changed files with 5 additions and 5 deletions

View file

@ -818,10 +818,10 @@ class TemplateParserV2Test extends \Codeception\Test\Unit
'@endmobile',
]);
$target = implode("\n", [
'<?php if (!$__Context->m): ?>',
"<?php if (!\\Context::get('m')): ?>",
'<p>4K or GTFO!</p>',
'<?php endif; ?>',
'<?php if ($__Context->m): ?>',
"<?php if (\\Context::get('m')): ?>",
'<p>USB C is the way to go~</p>',
'<?php endif; ?>',
]);