Avance del feature export/import projects, y modificacion de la funcion para realizar upload

This commit is contained in:
Wendy Nestor
2014-05-12 12:28:01 -04:00
parent 1843cae639
commit 2532ea7460
2 changed files with 272 additions and 150 deletions

View File

@@ -1531,9 +1531,9 @@ class RestContext extends BehatContext
/**
* @Given /^POST upload a project file "([^"]*)" to "([^"]*)"$/
*/
public function postUploadAProjectFile($file, $url, PyStringNode $string)
public function postUploadAProjectFile($file, $url)
{
$postFields = json_decode($string);
$postFields = new StdClass();
$postFields->project_file ='@'.$file;
$this->_restObjectMethod = 'post';