2012-07-12 20:40:06 -04:00
|
|
|
<?php
|
|
|
|
|
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
|
|
|
|
|
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
|
|
|
|
|
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
|
|
|
|
|
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
|
|
|
|
|
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
|
|
|
|
|
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
|
|
|
|
|
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
|
|
|
|
|
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
|
|
|
|
|
require_once PATH_TRUNK . 'workflow/engine/classes/class.case.php';
|
2012-05-10 20:57:25 -04:00
|
|
|
|
2012-07-12 20:40:06 -04:00
|
|
|
/**
|
|
|
|
|
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:33.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class classCasesTest extends PHPUnit_Framework_TestCase
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @var Cases
|
|
|
|
|
*/
|
|
|
|
|
protected $object;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets up the fixture, for example, opens a network connection.
|
|
|
|
|
* This method is called before a test is executed.
|
|
|
|
|
*/
|
|
|
|
|
protected function setUp()
|
|
|
|
|
{
|
|
|
|
|
$this->object = new Cases();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Tears down the fixture, for example, closes a network connection.
|
|
|
|
|
* This method is called after a test is executed.
|
|
|
|
|
*/
|
|
|
|
|
protected function tearDown()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This is the default method to test, if the class still having
|
|
|
|
|
* the same number of methods.
|
|
|
|
|
*/
|
|
|
|
|
public function testNumberOfMethodsInThisClass()
|
|
|
|
|
{
|
|
|
|
|
$this->assertTrue( count($methods) == 96);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::__construct
|
|
|
|
|
* @todo Implement test__construct().
|
|
|
|
|
*/
|
|
|
|
|
public function test__construct()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', '__construct');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
|
|
|
|
}
|
2012-05-10 20:57:25 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::canStartCase
|
|
|
|
|
* @todo Implement testcanStartCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testcanStartCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('canStartCase', $methods ), 'exists method canStartCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'canStartCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sUIDUser');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getStartCases
|
|
|
|
|
* @todo Implement testgetStartCases().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetStartCases()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getStartCases', $methods ), 'exists method getStartCases' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getStartCases');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sUIDUser');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getStartCasesPerType
|
|
|
|
|
* @todo Implement testgetStartCasesPerType().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetStartCasesPerType()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getStartCasesPerType', $methods ), 'exists method getStartCasesPerType' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getStartCasesPerType');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sUIDUser');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'typeView');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getSelfServiceTasks
|
|
|
|
|
* @todo Implement testgetSelfServiceTasks().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetSelfServiceTasks()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getSelfServiceTasks', $methods ), 'exists method getSelfServiceTasks' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getSelfServiceTasks');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sUIDUser');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::isSelfService
|
|
|
|
|
* @todo Implement testisSelfService().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testisSelfService()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('isSelfService', $methods ), 'exists method isSelfService' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'isSelfService');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'USR_UID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'TAS_UID');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::loadCase
|
|
|
|
|
* @todo Implement testloadCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testloadCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('loadCase', $methods ), 'exists method loadCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'loadCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iDelIndex');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[1]->getDefaultValue() == '0');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::loadCaseByNumber
|
|
|
|
|
* @todo Implement testloadCaseByNumber().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testloadCaseByNumber()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('loadCaseByNumber', $methods ), 'exists method loadCaseByNumber' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'loadCaseByNumber');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sCaseNumber');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::refreshCaseLabel
|
|
|
|
|
* @todo Implement testrefreshCaseLabel().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testrefreshCaseLabel()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('refreshCaseLabel', $methods ), 'exists method refreshCaseLabel' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'refreshCaseLabel');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'aAppData');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sLabel');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::refreshCaseTitleAndDescription
|
|
|
|
|
* @todo Implement testrefreshCaseTitleAndDescription().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testrefreshCaseTitleAndDescription()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('refreshCaseTitleAndDescription', $methods ), 'exists method refreshCaseTitleAndDescription' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'refreshCaseTitleAndDescription');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'aAppData');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::newRefreshCaseTitleAndDescription
|
|
|
|
|
* @todo Implement testnewRefreshCaseTitleAndDescription().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testnewRefreshCaseTitleAndDescription()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('newRefreshCaseTitleAndDescription', $methods ), 'exists method newRefreshCaseTitleAndDescription' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'newRefreshCaseTitleAndDescription');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'fields');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'aAppData');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::refreshCaseTitle
|
|
|
|
|
* @todo Implement testrefreshCaseTitle().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testrefreshCaseTitle()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('refreshCaseTitle', $methods ), 'exists method refreshCaseTitle' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'refreshCaseTitle');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'aAppData');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::refreshCaseDescription
|
|
|
|
|
* @todo Implement testrefreshCaseDescription().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testrefreshCaseDescription()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('refreshCaseDescription', $methods ), 'exists method refreshCaseDescription' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'refreshCaseDescription');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'aAppData');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::refreshCaseStatusCode
|
|
|
|
|
* @todo Implement testrefreshCaseStatusCode().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testrefreshCaseStatusCode()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('refreshCaseStatusCode', $methods ), 'exists method refreshCaseStatusCode' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'refreshCaseStatusCode');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'aAppData');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::arrayRecursiveDiff
|
|
|
|
|
* @todo Implement testarrayRecursiveDiff().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testarrayRecursiveDiff()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('arrayRecursiveDiff', $methods ), 'exists method arrayRecursiveDiff' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'arrayRecursiveDiff');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'aArray1');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'aArray2');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::updateCase
|
|
|
|
|
* @todo Implement testupdateCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testupdateCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('updateCase', $methods ), 'exists method updateCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'updateCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'Fields');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::removeCase
|
|
|
|
|
* @todo Implement testremoveCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testremoveCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('removeCase', $methods ), 'exists method removeCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'removeCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::setDelInitDate
|
|
|
|
|
* @todo Implement testsetDelInitDate().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testsetDelInitDate()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('setDelInitDate', $methods ), 'exists method setDelInitDate' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'setDelInitDate');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iDelIndex');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::setCatchUser
|
|
|
|
|
* @todo Implement testsetCatchUser().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testsetCatchUser()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('setCatchUser', $methods ), 'exists method setCatchUser' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'setCatchUser');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iDelIndex');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'usrId');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::GetOpenThreads
|
|
|
|
|
* @todo Implement testGetOpenThreads().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testGetOpenThreads()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('GetOpenThreads', $methods ), 'exists method GetOpenThreads' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'GetOpenThreads');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getSiblingThreads
|
|
|
|
|
* @todo Implement testgetSiblingThreads().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetSiblingThreads()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getSiblingThreads', $methods ), 'exists method getSiblingThreads' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getSiblingThreads');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iDelIndex');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getOpenSiblingThreads
|
|
|
|
|
* @todo Implement testgetOpenSiblingThreads().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetOpenSiblingThreads()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getOpenSiblingThreads', $methods ), 'exists method getOpenSiblingThreads' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getOpenSiblingThreads');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sNextTask');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'iDelIndex');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'sCurrentTask');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::searchOpenPreviousTasks
|
|
|
|
|
* @todo Implement testsearchOpenPreviousTasks().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testsearchOpenPreviousTasks()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('searchOpenPreviousTasks', $methods ), 'exists method searchOpenPreviousTasks' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'searchOpenPreviousTasks');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'taskUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'aPreviousTasks');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[2]->getDefaultValue() == 'Array');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getReviewedTasks
|
|
|
|
|
* @todo Implement testgetReviewedTasks().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetReviewedTasks()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getReviewedTasks', $methods ), 'exists method getReviewedTasks' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getReviewedTasks');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'taskUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::CountTotalPreviousTasks
|
|
|
|
|
* @todo Implement testCountTotalPreviousTasks().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testCountTotalPreviousTasks()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('CountTotalPreviousTasks', $methods ), 'exists method CountTotalPreviousTasks' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'CountTotalPreviousTasks');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sTasUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getOpenNullDelegations
|
|
|
|
|
* @todo Implement testgetOpenNullDelegations().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetOpenNullDelegations()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getOpenNullDelegations', $methods ), 'exists method getOpenNullDelegations' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getOpenNullDelegations');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sTasUid');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::isRouteOpen
|
|
|
|
|
* @todo Implement testisRouteOpen().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testisRouteOpen()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('isRouteOpen', $methods ), 'exists method isRouteOpen' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'isRouteOpen');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sTasUid');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::newAppDelegation
|
|
|
|
|
* @todo Implement testnewAppDelegation().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testnewAppDelegation()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('newAppDelegation', $methods ), 'exists method newAppDelegation' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'newAppDelegation');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sProUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sTasUid');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'sUsrUid');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[4]->getName() == 'sPrevious');
|
|
|
|
|
$this->assertTrue( $params[4]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[4]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[5]->getName() == 'iPriority');
|
|
|
|
|
$this->assertTrue( $params[5]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[5]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[6]->getName() == 'sDelType');
|
|
|
|
|
$this->assertTrue( $params[6]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[6]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[7]->getName() == 'iAppThreadIndex');
|
|
|
|
|
$this->assertTrue( $params[7]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[7]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[7]->getDefaultValue() == '1');
|
|
|
|
|
$this->assertTrue( $params[8]->getName() == 'nextDel');
|
|
|
|
|
$this->assertTrue( $params[8]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[8]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[8]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::updateAppDelegation
|
|
|
|
|
* @todo Implement testupdateAppDelegation().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testupdateAppDelegation()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('updateAppDelegation', $methods ), 'exists method updateAppDelegation' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'updateAppDelegation');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iDelIndex');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'iAppThreadIndex');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::GetAllDelegations
|
|
|
|
|
* @todo Implement testGetAllDelegations().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testGetAllDelegations()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('GetAllDelegations', $methods ), 'exists method GetAllDelegations' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'GetAllDelegations');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::GetAllThreads
|
|
|
|
|
* @todo Implement testGetAllThreads().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testGetAllThreads()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('GetAllThreads', $methods ), 'exists method GetAllThreads' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'GetAllThreads');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::updateAppThread
|
|
|
|
|
* @todo Implement testupdateAppThread().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testupdateAppThread()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('updateAppThread', $methods ), 'exists method updateAppThread' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'updateAppThread');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iAppThreadIndex');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'iNewDelIndex');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::closeAppThread
|
|
|
|
|
* @todo Implement testcloseAppThread().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testcloseAppThread()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('closeAppThread', $methods ), 'exists method closeAppThread' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'closeAppThread');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iAppThreadIndex');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::closeAllThreads
|
|
|
|
|
* @todo Implement testcloseAllThreads().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testcloseAllThreads()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('closeAllThreads', $methods ), 'exists method closeAllThreads' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'closeAllThreads');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::newAppThread
|
|
|
|
|
* @todo Implement testnewAppThread().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testnewAppThread()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('newAppThread', $methods ), 'exists method newAppThread' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'newAppThread');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iNewDelIndex');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'iAppParent');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::closeAllDelegations
|
|
|
|
|
* @todo Implement testcloseAllDelegations().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testcloseAllDelegations()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('closeAllDelegations', $methods ), 'exists method closeAllDelegations' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'closeAllDelegations');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::CloseCurrentDelegation
|
|
|
|
|
* @todo Implement testCloseCurrentDelegation().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testCloseCurrentDelegation()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('CloseCurrentDelegation', $methods ), 'exists method CloseCurrentDelegation' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'CloseCurrentDelegation');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iDelIndex');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::ReactivateCurrentDelegation
|
|
|
|
|
* @todo Implement testReactivateCurrentDelegation().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testReactivateCurrentDelegation()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('ReactivateCurrentDelegation', $methods ), 'exists method ReactivateCurrentDelegation' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'ReactivateCurrentDelegation');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iDelegation');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::startCase
|
|
|
|
|
* @todo Implement teststartCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function teststartCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('startCase', $methods ), 'exists method startCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'startCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sTasUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sUsrUid');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'isSubprocess');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getNextStep
|
|
|
|
|
* @todo Implement testgetNextStep().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetNextStep()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getNextStep', $methods ), 'exists method getNextStep' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getNextStep');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sProUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'iDelIndex');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[2]->getDefaultValue() == '0');
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'iPosition');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[3]->getDefaultValue() == '0');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getPreviousStep
|
|
|
|
|
* @todo Implement testgetPreviousStep().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetPreviousStep()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getPreviousStep', $methods ), 'exists method getPreviousStep' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getPreviousStep');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sProUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'iDelIndex');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[2]->getDefaultValue() == '0');
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'iPosition');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[3]->getDefaultValue() == '0');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getNextSupervisorStep
|
|
|
|
|
* @todo Implement testgetNextSupervisorStep().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetNextSupervisorStep()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getNextSupervisorStep', $methods ), 'exists method getNextSupervisorStep' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getNextSupervisorStep');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iPosition');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sType');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[2]->getDefaultValue() == 'DYNAFORM');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getPreviousSupervisorStep
|
|
|
|
|
* @todo Implement testgetPreviousSupervisorStep().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetPreviousSupervisorStep()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getPreviousSupervisorStep', $methods ), 'exists method getPreviousSupervisorStep' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getPreviousSupervisorStep');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iPosition');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sType');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[2]->getDefaultValue() == 'DYNAFORM');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getTransferHistoryCriteria
|
|
|
|
|
* @todo Implement testgetTransferHistoryCriteria().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetTransferHistoryCriteria()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getTransferHistoryCriteria', $methods ), 'exists method getTransferHistoryCriteria' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getTransferHistoryCriteria');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::prepareCriteriaForToDo
|
|
|
|
|
* @todo Implement testprepareCriteriaForToDo().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testprepareCriteriaForToDo()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('prepareCriteriaForToDo', $methods ), 'exists method prepareCriteriaForToDo' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'prepareCriteriaForToDo');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sUIDUserLogged');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getConditionCasesList
|
|
|
|
|
* @todo Implement testgetConditionCasesList().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetConditionCasesList()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getConditionCasesList', $methods ), 'exists method getConditionCasesList' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getConditionCasesList');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sTypeList');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[0]->getDefaultValue() == 'all');
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sUIDUserLogged');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'ClearSession');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[2]->getDefaultValue() == '1');
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'aAdditionalFilter');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::loadCaseInCurrentDelegation
|
|
|
|
|
* @todo Implement testloadCaseInCurrentDelegation().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testloadCaseInCurrentDelegation()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('loadCaseInCurrentDelegation', $methods ), 'exists method loadCaseInCurrentDelegation' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'loadCaseInCurrentDelegation');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'APP_UID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::loadCaseByDelegation
|
|
|
|
|
* @todo Implement testloadCaseByDelegation().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testloadCaseByDelegation()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('loadCaseByDelegation', $methods ), 'exists method loadCaseByDelegation' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'loadCaseByDelegation');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'appUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'delIndex');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::ThrowUnpauseDaemon
|
|
|
|
|
* @todo Implement testThrowUnpauseDaemon().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testThrowUnpauseDaemon()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('ThrowUnpauseDaemon', $methods ), 'exists method ThrowUnpauseDaemon' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'ThrowUnpauseDaemon');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'today');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::UnpauseRoutedCasesWithPauseFlagEnabled
|
|
|
|
|
* @todo Implement testUnpauseRoutedCasesWithPauseFlagEnabled().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testUnpauseRoutedCasesWithPauseFlagEnabled()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('UnpauseRoutedCasesWithPauseFlagEnabled', $methods ), 'exists method UnpauseRoutedCasesWithPauseFlagEnabled' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'UnpauseRoutedCasesWithPauseFlagEnabled');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'usrLogged');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getApplicationUIDByNumber
|
|
|
|
|
* @todo Implement testgetApplicationUIDByNumber().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetApplicationUIDByNumber()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getApplicationUIDByNumber', $methods ), 'exists method getApplicationUIDByNumber' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getApplicationUIDByNumber');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'iApplicationNumber');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getCurrentDelegation
|
|
|
|
|
* @todo Implement testgetCurrentDelegation().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetCurrentDelegation()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getCurrentDelegation', $methods ), 'exists method getCurrentDelegation' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getCurrentDelegation');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sUserUID');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::loadTriggers
|
|
|
|
|
* @todo Implement testloadTriggers().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testloadTriggers()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('loadTriggers', $methods ), 'exists method loadTriggers' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'loadTriggers');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sTasUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sStepType');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sStepUidObj');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'sTriggerType');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::executeTriggers
|
|
|
|
|
* @todo Implement testexecuteTriggers().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testexecuteTriggers()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('executeTriggers', $methods ), 'exists method executeTriggers' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'executeTriggers');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sTasUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sStepType');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sStepUidObj');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'sTriggerType');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[4]->getName() == 'aFields');
|
|
|
|
|
$this->assertTrue( $params[4]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[4]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[4]->getDefaultValue() == 'Array');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getTriggerNames
|
|
|
|
|
* @todo Implement testgetTriggerNames().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetTriggerNames()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getTriggerNames', $methods ), 'exists method getTriggerNames' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getTriggerNames');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'triggers');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getInputDocumentsCriteria
|
|
|
|
|
* @todo Implement testgetInputDocumentsCriteria().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetInputDocumentsCriteria()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getInputDocumentsCriteria', $methods ), 'exists method getInputDocumentsCriteria' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getInputDocumentsCriteria');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iDelegation');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sDocumentUID');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'sAppDocuUID');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getInputDocumentsCriteriaToRevise
|
|
|
|
|
* @todo Implement testgetInputDocumentsCriteriaToRevise().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetInputDocumentsCriteriaToRevise()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getInputDocumentsCriteriaToRevise', $methods ), 'exists method getInputDocumentsCriteriaToRevise' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getInputDocumentsCriteriaToRevise');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getOutputDocumentsCriteriaToRevise
|
|
|
|
|
* @todo Implement testgetOutputDocumentsCriteriaToRevise().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetOutputDocumentsCriteriaToRevise()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getOutputDocumentsCriteriaToRevise', $methods ), 'exists method getOutputDocumentsCriteriaToRevise' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getOutputDocumentsCriteriaToRevise');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getCriteriaProcessCases
|
|
|
|
|
* @todo Implement testgetCriteriaProcessCases().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetCriteriaProcessCases()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getCriteriaProcessCases', $methods ), 'exists method getCriteriaProcessCases' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getCriteriaProcessCases');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'status');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'PRO_UID');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::pauseCase
|
|
|
|
|
* @todo Implement testpauseCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testpauseCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('pauseCase', $methods ), 'exists method pauseCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'pauseCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iDelegation');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sUserUID');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'sUnpauseDate');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::unpauseCase
|
|
|
|
|
* @todo Implement testunpauseCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testunpauseCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('unpauseCase', $methods ), 'exists method unpauseCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'unpauseCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iDelegation');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sUserUID');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::cancelCase
|
|
|
|
|
* @todo Implement testcancelCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testcancelCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('cancelCase', $methods ), 'exists method cancelCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'cancelCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iIndex');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'user_logged');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::reactivateCase
|
|
|
|
|
* @todo Implement testreactivateCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testreactivateCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('reactivateCase', $methods ), 'exists method reactivateCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'reactivateCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iIndex');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'user_logged');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::reassignCase
|
|
|
|
|
* @todo Implement testreassignCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testreassignCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('reassignCase', $methods ), 'exists method reassignCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'reassignCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iDelegation');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sUserUID');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'newUserUID');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[4]->getName() == 'sType');
|
|
|
|
|
$this->assertTrue( $params[4]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[4]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[4]->getDefaultValue() == 'REASSIGN');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getAllDynaformsStepsToRevise
|
|
|
|
|
* @todo Implement testgetAllDynaformsStepsToRevise().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetAllDynaformsStepsToRevise()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getAllDynaformsStepsToRevise', $methods ), 'exists method getAllDynaformsStepsToRevise' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getAllDynaformsStepsToRevise');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'APP_UID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getAllInputsStepsToRevise
|
|
|
|
|
* @todo Implement testgetAllInputsStepsToRevise().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetAllInputsStepsToRevise()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getAllInputsStepsToRevise', $methods ), 'exists method getAllInputsStepsToRevise' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getAllInputsStepsToRevise');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'APP_UID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getAllUploadedDocumentsCriteria
|
|
|
|
|
* @todo Implement testgetAllUploadedDocumentsCriteria().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetAllUploadedDocumentsCriteria()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getAllUploadedDocumentsCriteria', $methods ), 'exists method getAllUploadedDocumentsCriteria' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getAllUploadedDocumentsCriteria');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sTasKUID');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'sUserUID');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getAllGeneratedDocumentsCriteria
|
|
|
|
|
* @todo Implement testgetAllGeneratedDocumentsCriteria().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetAllGeneratedDocumentsCriteria()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getAllGeneratedDocumentsCriteria', $methods ), 'exists method getAllGeneratedDocumentsCriteria' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getAllGeneratedDocumentsCriteria');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sTasKUID');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'sUserUID');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getallDynaformsCriteria
|
|
|
|
|
* @todo Implement testgetallDynaformsCriteria().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetallDynaformsCriteria()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getallDynaformsCriteria', $methods ), 'exists method getallDynaformsCriteria' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getallDynaformsCriteria');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sTasKUID');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'sUserUID');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::sendNotifications
|
|
|
|
|
* @todo Implement testsendNotifications().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testsendNotifications()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('sendNotifications', $methods ), 'exists method sendNotifications' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'sendNotifications');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sCurrentTask');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'aTasks');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'aFields');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[4]->getName() == 'iDelegation');
|
|
|
|
|
$this->assertTrue( $params[4]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[4]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[5]->getName() == 'sFrom');
|
|
|
|
|
$this->assertTrue( $params[5]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[5]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[5]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getAllObjects
|
|
|
|
|
* @todo Implement testgetAllObjects().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetAllObjects()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getAllObjects', $methods ), 'exists method getAllObjects' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getAllObjects');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'PRO_UID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'APP_UID');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'TAS_UID');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'USR_UID');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getAllObjectsFrom
|
|
|
|
|
* @todo Implement testgetAllObjectsFrom().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetAllObjectsFrom()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getAllObjectsFrom', $methods ), 'exists method getAllObjectsFrom' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getAllObjectsFrom');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'PRO_UID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'APP_UID');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'TAS_UID');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'USR_UID');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[4]->getName() == 'ACTION');
|
|
|
|
|
$this->assertTrue( $params[4]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[4]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::verifyCaseTracker
|
|
|
|
|
* @todo Implement testverifyCaseTracker().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testverifyCaseTracker()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('verifyCaseTracker', $methods ), 'exists method verifyCaseTracker' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'verifyCaseTracker');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'case');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'pin');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::caseTrackerPermissions
|
|
|
|
|
* @todo Implement testcaseTrackerPermissions().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testcaseTrackerPermissions()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('caseTrackerPermissions', $methods ), 'exists method caseTrackerPermissions' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'caseTrackerPermissions');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'PRO_UID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::verifyTable
|
|
|
|
|
* @todo Implement testverifyTable().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testverifyTable()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('verifyTable', $methods ), 'exists method verifyTable' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'verifyTable');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getAllUploadedDocumentsCriteriaTracker
|
|
|
|
|
* @todo Implement testgetAllUploadedDocumentsCriteriaTracker().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetAllUploadedDocumentsCriteriaTracker()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getAllUploadedDocumentsCriteriaTracker', $methods ), 'exists method getAllUploadedDocumentsCriteriaTracker' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getAllUploadedDocumentsCriteriaTracker');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sDocUID');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getAllGeneratedDocumentsCriteriaTracker
|
|
|
|
|
* @todo Implement testgetAllGeneratedDocumentsCriteriaTracker().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetAllGeneratedDocumentsCriteriaTracker()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getAllGeneratedDocumentsCriteriaTracker', $methods ), 'exists method getAllGeneratedDocumentsCriteriaTracker' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getAllGeneratedDocumentsCriteriaTracker');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sDocUID');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getHistoryMessagesTracker
|
|
|
|
|
* @todo Implement testgetHistoryMessagesTracker().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetHistoryMessagesTracker()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getHistoryMessagesTracker', $methods ), 'exists method getHistoryMessagesTracker' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getHistoryMessagesTracker');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getHistoryMessagesTrackerExt
|
|
|
|
|
* @todo Implement testgetHistoryMessagesTrackerExt().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetHistoryMessagesTrackerExt()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getHistoryMessagesTrackerExt', $methods ), 'exists method getHistoryMessagesTrackerExt' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getHistoryMessagesTrackerExt');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getHistoryMessagesTrackerView
|
|
|
|
|
* @todo Implement testgetHistoryMessagesTrackerView().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetHistoryMessagesTrackerView()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getHistoryMessagesTrackerView', $methods ), 'exists method getHistoryMessagesTrackerView' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getHistoryMessagesTrackerView');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'Msg_UID');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getAllObjectsFromProcess
|
|
|
|
|
* @todo Implement testgetAllObjectsFromProcess().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetAllObjectsFromProcess()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getAllObjectsFromProcess', $methods ), 'exists method getAllObjectsFromProcess' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getAllObjectsFromProcess');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'PRO_UID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'OBJ_TYPE');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[1]->getDefaultValue() == '%');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::executeTriggersAfterExternal
|
|
|
|
|
* @todo Implement testexecuteTriggersAfterExternal().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testexecuteTriggersAfterExternal()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('executeTriggersAfterExternal', $methods ), 'exists method executeTriggersAfterExternal' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'executeTriggersAfterExternal');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sProcess');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sTask');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sApplication');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'iIndex');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[4]->getName() == 'iStepPosition');
|
|
|
|
|
$this->assertTrue( $params[4]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[4]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[5]->getName() == 'aNewData');
|
|
|
|
|
$this->assertTrue( $params[5]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[5]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[5]->getDefaultValue() == 'Array');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::thisIsTheCurrentUser
|
|
|
|
|
* @todo Implement testthisIsTheCurrentUser().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testthisIsTheCurrentUser()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('thisIsTheCurrentUser', $methods ), 'exists method thisIsTheCurrentUser' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'thisIsTheCurrentUser');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'iIndex');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sUserUID');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'sAction');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[3]->getDefaultValue() == '');
|
|
|
|
|
$this->assertTrue( $params[4]->getName() == 'sURL');
|
|
|
|
|
$this->assertTrue( $params[4]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[4]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[4]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getCriteriaUsersCases
|
|
|
|
|
* @todo Implement testgetCriteriaUsersCases().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetCriteriaUsersCases()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getCriteriaUsersCases', $methods ), 'exists method getCriteriaUsersCases' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getCriteriaUsersCases');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'status');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'USR_UID');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getAdvancedSearch
|
|
|
|
|
* @todo Implement testgetAdvancedSearch().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetAdvancedSearch()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getAdvancedSearch', $methods ), 'exists method getAdvancedSearch' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getAdvancedSearch');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sCase');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sProcess');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'sTask');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[3]->getName() == 'sCurrentUser');
|
|
|
|
|
$this->assertTrue( $params[3]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[3]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[4]->getName() == 'sSentby');
|
|
|
|
|
$this->assertTrue( $params[4]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[4]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[5]->getName() == 'sLastModFrom');
|
|
|
|
|
$this->assertTrue( $params[5]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[5]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[6]->getName() == 'sLastModTo');
|
|
|
|
|
$this->assertTrue( $params[6]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[6]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[7]->getName() == 'sStatus');
|
|
|
|
|
$this->assertTrue( $params[7]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[7]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[8]->getName() == 'permisse');
|
|
|
|
|
$this->assertTrue( $params[8]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[8]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[9]->getName() == 'userlogged');
|
|
|
|
|
$this->assertTrue( $params[9]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[9]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[10]->getName() == 'aSupervisor');
|
|
|
|
|
$this->assertTrue( $params[10]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[10]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getConditionCasesCount
|
|
|
|
|
* @todo Implement testgetConditionCasesCount().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetConditionCasesCount()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getConditionCasesCount', $methods ), 'exists method getConditionCasesCount' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getConditionCasesCount');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'type');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sumary');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getAllConditionCasesCount
|
|
|
|
|
* @todo Implement testgetAllConditionCasesCount().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetAllConditionCasesCount()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getAllConditionCasesCount', $methods ), 'exists method getAllConditionCasesCount' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getAllConditionCasesCount');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'types');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sumary');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::userParticipatedInCase
|
|
|
|
|
* @todo Implement testuserParticipatedInCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testuserParticipatedInCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('userParticipatedInCase', $methods ), 'exists method userParticipatedInCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'userParticipatedInCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'sUIDUserLogged');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getCurrentDelegationCase
|
|
|
|
|
* @todo Implement testgetCurrentDelegationCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetCurrentDelegationCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getCurrentDelegationCase', $methods ), 'exists method getCurrentDelegationCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getCurrentDelegationCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sApplicationUID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::clearCaseSessionData
|
|
|
|
|
* @todo Implement testclearCaseSessionData().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testclearCaseSessionData()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('clearCaseSessionData', $methods ), 'exists method clearCaseSessionData' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'clearCaseSessionData');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::jumpToCase
|
|
|
|
|
* @todo Implement testjumpToCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testjumpToCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('jumpToCase', $methods ), 'exists method jumpToCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'jumpToCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'APP_NUMBER');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::discriminateCases
|
|
|
|
|
* @todo Implement testdiscriminateCases().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testdiscriminateCases()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('discriminateCases', $methods ), 'exists method discriminateCases' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'discriminateCases');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'aData');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::GetAllOpenDelegation
|
|
|
|
|
* @todo Implement testGetAllOpenDelegation().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testGetAllOpenDelegation()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('GetAllOpenDelegation', $methods ), 'exists method GetAllOpenDelegation' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'GetAllOpenDelegation');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'aData');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getUsersToReassign
|
|
|
|
|
* @todo Implement testgetUsersToReassign().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetUsersToReassign()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getUsersToReassign', $methods ), 'exists method getUsersToReassign' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getUsersToReassign');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'TAS_UID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'USR_UID');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getUsersParticipatedInCase
|
|
|
|
|
* @todo Implement testgetUsersParticipatedInCase().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetUsersParticipatedInCase()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getUsersParticipatedInCase', $methods ), 'exists method getUsersParticipatedInCase' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getUsersParticipatedInCase');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'sAppUid');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @covers Cases::getCaseNotes
|
|
|
|
|
* @todo Implement testgetCaseNotes().
|
|
|
|
|
*/
|
2012-07-12 20:40:06 -04:00
|
|
|
public function testgetCaseNotes()
|
|
|
|
|
{
|
|
|
|
|
$methods = get_class_methods($this->object);
|
|
|
|
|
$this->assertTrue( in_array('getCaseNotes', $methods ), 'exists method getCaseNotes' );
|
|
|
|
|
$r = new ReflectionMethod('Cases', 'getCaseNotes');
|
|
|
|
|
$params = $r->getParameters();
|
|
|
|
|
$this->assertTrue( $params[0]->getName() == 'applicationID');
|
|
|
|
|
$this->assertTrue( $params[0]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[0]->isOptional () == false);
|
|
|
|
|
$this->assertTrue( $params[1]->getName() == 'type');
|
|
|
|
|
$this->assertTrue( $params[1]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[1]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[1]->getDefaultValue() == 'array');
|
|
|
|
|
$this->assertTrue( $params[2]->getName() == 'userUid');
|
|
|
|
|
$this->assertTrue( $params[2]->isArray() == false);
|
|
|
|
|
$this->assertTrue( $params[2]->isOptional () == true);
|
|
|
|
|
$this->assertTrue( $params[2]->getDefaultValue() == '');
|
|
|
|
|
$this->markTestIncomplete('This test has not been implemented yet.');
|
|
|
|
|
|
2012-05-10 20:57:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|