use Twig\Node\TextNode;
/**
* @internal
*
* @covers \Shopware\Core\Framework\Adapter\Twig\Node\FeatureCallSilentToken
*/
class FeatureCallSilentTokenTest extends TestCase
{ public function testCompile(): void
{ $token =
new FeatureCallSilentToken('v6.5.0.0',
new TextNode('test', 1
), 1, 'sw_feature'
);
$compiler =
new Compiler(new Environment(new ArrayLoader()));
$compiler->
compile($token);
$code = <<<'PHP'
// line 1
\Shopware\Core\Framework\Feature::callSilentIfInactive('v6.5.0.0', function () use(&$context) { echo "test";
});
PHP;