Hostnet\Component\Webpack\Configuration\Loader\TypeScriptLoaderTest::testConfigTreeBuilder PHP Method

testConfigTreeBuilder() public method

    public function testConfigTreeBuilder()
    {
        $tree = new TreeBuilder();
        $node = $tree->root('typescript')->children();
        TypeScriptLoader::applyConfiguration($node);
        $node->end();
        $config = $tree->buildTree()->finalize([]);
        $this->assertArrayHasKey('typescript', $config);
        $this->assertArrayHasKey('enabled', $config['typescript']);
    }