neos-development-collection icon indicating copy to clipboard operation
neos-development-collection copied to clipboard

9.1 Add `FixtureFactory::createNodeOfType` for unit tests.

Open mhsdesign opened this issue 2 years ago • 7 comments

we were discussing how to stub nodes in tests https://neos-project.slack.com/archives/C3MCBK6S2/p1686294507655429

and it was noted that we need some kind of factory for this:

if the input for the test is a Node, I'd just instantiate one, if the output that is to be tested is a node, then use commands in behat

imho the CR should provide something like FixtureFactory::createNodeOfType for unit tests, then you don't have to deal with that in every test

mhsdesign avatar Jun 09 '23 09:06 mhsdesign