I have some processes to perform actions on entities in the event that other entities are updated. Similar to the Magento contact/account creation process. The thing is, I want to be able to test these with PHPUnit but don’t really know how.
Probably it would be fine to do them in functional tests where I update an entity through one of its controller endpoints, then run the cron job, then assert. Otherwise, direct testing of the processes would work too.
Any advice would be really helpful.
You must be logged in to reply to this topic.