I'm using eval cv php:boot
in a script. I need to be able to delete a contact in the script, including the skip_undelete
flag, but this action is denied - get a "could not delete contact" error.
I learnt that in Drupal this happens when you're bootstrapped but not as the admin user, but I'm unfamiliar with what Wordpress's equivalent would be, and whether it's possible to do this using cv
?
Thanks.
PS. I'm writing a phpunit test (not a unit test) for a wordpress integration plugin (not a CiviCRM extension) that makes various API calls. I am running this against a real world database, not a buildkit one, so it's not appropriate to use the extension-style phpunit tests which start by tearing out your data :-)
cv
! Even at CiviCRM sprints most folks haven't seen it before.