Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 19 | public function getArrayNodeDefinition(TreeBuilder $treeBuilder): ArrayNodeDefinition |
|
38 | { |
||
39 | /** @var ArrayNodeDefinition $rootNode */ |
||
40 | 19 | $rootNode = $treeBuilder->root(self::ROOT_KEY); |
|
41 | |||
42 | $rootNode |
||
43 | 19 | ->info("It is recommended to disable the original DrupalKernel substitution to run your tests.\nTo programmatically toggle it, use the two dedicated composer commands.") |
|
44 | 19 | ->canBeDisabled() |
|
45 | 19 | ->children() |
|
46 | 19 | ->scalarNode('composer_autoload_file_path') |
|
47 | 19 | ->cannotBeEmpty() |
|
48 | 19 | ->defaultValue('vendor/autoload.php') |
|
49 | 19 | ->end() |
|
50 | 19 | ->scalarNode('cache_directory_path') |
|
|
|||
51 | 19 | ->info('If not specified, it fall backs to the default cache directory path.') |
|
52 | 19 | ->defaultValue($this->defaultsConfiguration->getCacheDirectoryPath()) |
|
53 | 19 | ->end() |
|
54 | 19 | ->end(); |
|
55 | |||
56 | 19 | return $rootNode; |
|
57 | } |
||
59 |