Attempt to fix command status codes for Robo commands
This commit is contained in:
@ -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() {
|
||||
|
@ -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'));
|
||||
|
Reference in New Issue
Block a user