I’am new to Neos and been going through the tutorial and had some basic questions about writing test cases . I come from a java background and big fan of being able to have unit test cases for everything . One area that I’am not sure about is how can we write unit test cases for all the different areas such as components , fusion code etc . Also is there any IDE plugins that can do auto complete for fusion and yaml configuration since we don’t have the concept of type safe in php and configuration files.
By now you can define quite a lot of types in PHP and this also works really well with PHPStorm as it shows you incompatibilities.
For the configuration files exist some structure definitions for the core packages. Most plugins don’t provide that, but you can write them for your own configurations.
You can validate the configurations with ./flow configuration:validate.
You can find functional test examples for Fusion in the Neos.Fusion package. This should help you write your own.