I installed PHPSpec and I’m wondering how should I get the WordPress environment up and running in order to run my tests;
Essentially, now I can’t access anything from the WordPress API as the test file is outside the environment. Does anybody have any idea what should I load in order to make it work?
Thank you.
You should include
/wp-load.php
, that will load all of WordPress’ functions, etc.