Se modifica, criterios en REASSIGN CASE (source, target). Se modifica test unit para REASSIGN CASE. Se modifica conflicto en behat test cases
This commit is contained in:
@@ -49,7 +49,7 @@ Scenario: Returns a list of the cases for the logged in user (Paused)
|
|||||||
And the response has 12 records
|
And the response has 12 records
|
||||||
|
|
||||||
|
|
||||||
Scenario: Returns information about a given case of the list Inbox
|
Scenario: Returns information about a given case of the list Inbox of process "Derivation rules - Parallel"
|
||||||
Given I request "cases/220090038533b0c40688174019225585"
|
Given I request "cases/220090038533b0c40688174019225585"
|
||||||
Then the response status code should be 200
|
Then the response status code should be 200
|
||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
@@ -59,7 +59,7 @@ Scenario: Returns information about a given case of the list Inbox
|
|||||||
And the "app_name" property equals "#137"
|
And the "app_name" property equals "#137"
|
||||||
And the "app_status" property equals "TO_DO"
|
And the "app_status" property equals "TO_DO"
|
||||||
And the "app_init_usr_uid" property equals "00000000000000000000000000000001"
|
And the "app_init_usr_uid" property equals "00000000000000000000000000000001"
|
||||||
And the "app_init_usr_username" property equals "Administrator "
|
And the "app_init_usr_username" property equals "Administrator"
|
||||||
And the "pro_uid" property equals "35894775350ec7daa099378048029617"
|
And the "pro_uid" property equals "35894775350ec7daa099378048029617"
|
||||||
And the "pro_name" property equals "Derivation rules - Parallel"
|
And the "pro_name" property equals "Derivation rules - Parallel"
|
||||||
And the "app_create_date" property equals "2014-04-01 14:58:08"
|
And the "app_create_date" property equals "2014-04-01 14:58:08"
|
||||||
|
|||||||
@@ -608,7 +608,7 @@ class Cases
|
|||||||
}
|
}
|
||||||
\G::LoadClass('wsBase');
|
\G::LoadClass('wsBase');
|
||||||
$ws = new \wsBase();
|
$ws = new \wsBase();
|
||||||
$fields = $ws->reassignCase($userUid, $applicationUid, $delIndex, $userUidSource, $userUidTarget);
|
$fields = $ws->reassignCase($userUid, $applicationUid, $delIndex, $userUidTarget, $userUidSource);
|
||||||
$array = json_decode(json_encode($fields), true);
|
$array = json_decode(json_encode($fields), true);
|
||||||
if ($array ["status_code"] != 0) {
|
if ($array ["status_code"] != 0) {
|
||||||
throw (new \Exception($array ["message"]));
|
throw (new \Exception($array ["message"]));
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function testUpdateReassignCase(array $aResponse)
|
public function testUpdateReassignCase(array $aResponse)
|
||||||
{
|
{
|
||||||
$response = $this->oCases->updateReassignCase($aResponse['app_uid'], self::$usrUid, null, self::$usrUid, self::$usrUid2);
|
$response = $this->oCases->updateReassignCase($aResponse['app_uid'], self::$usrUid, null, self::$usrUid2, self::$usrUid);
|
||||||
$this->assertTrue(empty($response));
|
$this->assertTrue(empty($response));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user