Fix error on test:all command.
This commit is contained in:
@@ -66,8 +66,8 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function testAll() {
|
function testAll() {
|
||||||
$this->_exec('vendor/bin/codecept build');
|
|
||||||
$this->loadEnv();
|
$this->loadEnv();
|
||||||
|
$this->_exec('vendor/bin/codecept build');
|
||||||
$this->taskexec('phantomjs --webdriver=4444')
|
$this->taskexec('phantomjs --webdriver=4444')
|
||||||
->background()
|
->background()
|
||||||
->run();
|
->run();
|
||||||
|
@@ -3,14 +3,7 @@
|
|||||||
$console = new \Codeception\Lib\Console\Output([]);
|
$console = new \Codeception\Lib\Console\Output([]);
|
||||||
|
|
||||||
$console->writeln('Loading WP core...');
|
$console->writeln('Loading WP core...');
|
||||||
$wordpress_path = getenv('WP_TEST_PATH');
|
require_once(getenv('WP_TEST_PATH') . '/wp-load.php');
|
||||||
if ($wordpress_path) {
|
|
||||||
if (file_exists($wordpress_path . '/wp-load.php')) {
|
|
||||||
require_once(getenv('WP_TEST_PATH') . '/wp-load.php');
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
throw new Exception("You need to specify the path to your WordPress installation\n`WP_TEST_PATH` in your .env file");
|
|
||||||
}
|
|
||||||
|
|
||||||
$console->writeln('Cleaning up database...');
|
$console->writeln('Cleaning up database...');
|
||||||
$models = array(
|
$models = array(
|
||||||
|
Reference in New Issue
Block a user