Attempt to fix command status codes for Robo commands

This commit is contained in:
Tautvidas Sipavičius
2016-08-29 21:32:57 +03:00
parent eb42b0b98d
commit f3b96af863
2 changed files with 4 additions and 4 deletions

View File

@ -111,7 +111,7 @@ class RoboFile extends \Robo\Tasks {
if($opts['xml']) {
$command .= ' --xml';
}
$this->_exec($command);
return $this->_exec($command);
}
function testCoverage($opts=['file' => null, 'xml' => false]) {
@ -127,7 +127,7 @@ class RoboFile extends \Robo\Tasks {
if($opts['xml']) {
$command .= ' --xml';
}
$this->_exec($command);
return $this->_exec($command);
}
function testJavascript($xml_output_file = null) {
@ -146,7 +146,7 @@ class RoboFile extends \Robo\Tasks {
);
}
$this->_exec($command);
return $this->_exec($command);
}
function testDebug() {

View File

@ -97,7 +97,7 @@ class CustomFieldsTest extends MailPoetTest {
// missing type
$response = $router->save(array('name' => 'New custom field'));
expect($response->status)->equals(APIResponse::STATUS_BAD_REQUEST);
expect($response->errors[0]['message'])->equals('Please specify a type');
expect($response->errors[0]['message'])->equals('Please specify a type#');
// missing name
$response = $router->save(array('type' => 'text'));