diff --git a/RoboFile.php b/RoboFile.php index 99fcfacb16..2e5be6dde9 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -94,17 +94,6 @@ class RoboFile extends \Robo\Tasks { $this->_exec('vendor/bin/codecept run unit '.(($file) ? $file : '')); } - function testAcceptance($file = null) { - $this->loadEnv(); - $this->_exec('vendor/bin/codecept build'); - $this - ->taskExec('phantomjs --webdriver=4444') - ->background() - ->run(); - sleep(2); - $this->_exec('vendor/bin/codecept run acceptance '.(($file) ? $file : '')); - } - function testJavascript() { $this->compileJs(); @@ -115,13 +104,6 @@ class RoboFile extends \Robo\Tasks { ))); } - function testAll() { - $this->loadEnv(); - $this->_exec('vendor/bin/codecept build'); - $this->startPhantomJS(); - $this->_exec('vendor/bin/codecept run'); - } - function testDebug() { $this->_exec('vendor/bin/codecept build'); $this->loadEnv(); @@ -138,24 +120,5 @@ class RoboFile extends \Robo\Tasks { protected function loadEnv() { $dotenv = new Dotenv\Dotenv(__DIR__); $dotenv->load(); - - $this - ->taskWriteToFile('tests/acceptance.suite.yml') - ->textFromFile('tests/acceptance.suite.src') - ->run(); - - $this - ->taskReplaceInFile('tests/acceptance.suite.yml') - ->regex("/url.*/") - ->to('url: ' . "'" . getenv('WP_TEST_URL'). "'") - ->run(); - } - - protected function startPhantomJS() { - $this - ->taskexec('phantomjs --webdriver=4444') - ->background() - ->run(); - sleep(3); } }