This project is read-only.

Accessing a CustomPart during unit testing

Topics: Writing modules
Jun 11, 2013 at 1:39 AM
I am attempting to unit test my modules controller.

In the database I have added this part to my user content type. When I create a new user via the controller during this custom part is attached and available for use as expected.

When I build up a unit test registering DefaultContentManager, DefaultContentDefinitionManager and loads of other default managers in my container, my new user does not have my custom part available. What am I missing?