ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 1 reply, has 1 voice, and was last updated by  archy_bold 1 year, 3 months ago.

  • Creator
    Topic
  • #20065

    archy_bold
    Participant

    Hi there.

    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.

    Thanks,
    Simon

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #20542

    archy_bold
    Participant

    I’ve considered running the oro:process:execute:job command in a functional test, but I don’t really know the best way to get the process job IDs that are relevant.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.