use Twig\TokenParser\TokenParserInterface;
/**
* @internal
*
* @covers \Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension
*/
class NodeExtensionTest extends TestCase
{ public function testGetTokenParsers(): void
{ $extension =
new NodeExtension( $this->
createMock(TemplateFinder::
class),
$this->
createMock(TemplateScopeDetector::
class),
);
static::
assertCount(3,
$extension->
getTokenParsers());
static::
assertSame([ ExtendsTokenParser::
class,
IncludeTokenParser::
class,
ReturnNodeTokenParser::
class,
],
array_map(fn (TokenParserInterface
$parser) =>
$parser::
class,
$extension->
getTokenParsers()));
}