You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I have in mind here is more to provide utility classes for unit testing that hook into WordPress core functions like wp_insert_post() for example.
Because using Eloquent does not trigger the WordPress "side effects" like filters or actions. A code feature from your application may rely on specific hook to trigger and this is something you can't have with Corcel or similar projects for example.
Those factories classes can eventually also be used to insert a new record for sure.
Build factories for core WordPress models:
The text was updated successfully, but these errors were encountered: