php units for all classes
This commit is contained in:
@@ -1,327 +1,568 @@
|
||||
<?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/thirdparty/propel/Propel.php' ;
|
||||
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
|
||||
require_once PATH_TRUNK . 'workflow/engine/classes/class.tasks.php';
|
||||
<?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.tasks.php';
|
||||
|
||||
/**
|
||||
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:12.
|
||||
*/
|
||||
/**
|
||||
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 20:28:32.
|
||||
*/
|
||||
|
||||
class classTasksTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @var Tasks
|
||||
*/
|
||||
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 Tasks();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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) == 26);
|
||||
}
|
||||
|
||||
class classTasksTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @covers Tasks::getGroupsOfTask
|
||||
* @todo Implement testgetGroupsOfTask().
|
||||
*/
|
||||
public function testgetGroupsOfTask()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'getGroupsOfTask', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetGroupsOfTask()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getGroupsOfTask', $methods ), 'exists method getGroupsOfTask' );
|
||||
$r = new ReflectionMethod('Tasks', 'getGroupsOfTask');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTaskUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'iType');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::getAllTasks
|
||||
* @todo Implement testgetAllTasks().
|
||||
*/
|
||||
public function testgetAllTasks()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'getAllTasks', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetAllTasks()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getAllTasks', $methods ), 'exists method getAllTasks' );
|
||||
$r = new ReflectionMethod('Tasks', 'getAllTasks');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sProUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::createTaskRows
|
||||
* @todo Implement testcreateTaskRows().
|
||||
*/
|
||||
public function testcreateTaskRows()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'createTaskRows', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcreateTaskRows()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('createTaskRows', $methods ), 'exists method createTaskRows' );
|
||||
$r = new ReflectionMethod('Tasks', 'createTaskRows');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'aTask');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::updateTaskRows
|
||||
* @todo Implement testupdateTaskRows().
|
||||
*/
|
||||
public function testupdateTaskRows()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'updateTaskRows', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testupdateTaskRows()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('updateTaskRows', $methods ), 'exists method updateTaskRows' );
|
||||
$r = new ReflectionMethod('Tasks', 'updateTaskRows');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'aTask');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::getAllRoutes
|
||||
* @todo Implement testgetAllRoutes().
|
||||
*/
|
||||
public function testgetAllRoutes()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'getAllRoutes', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetAllRoutes()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getAllRoutes', $methods ), 'exists method getAllRoutes' );
|
||||
$r = new ReflectionMethod('Tasks', 'getAllRoutes');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sProUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::createRouteRows
|
||||
* @todo Implement testcreateRouteRows().
|
||||
*/
|
||||
public function testcreateRouteRows()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'createRouteRows', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcreateRouteRows()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('createRouteRows', $methods ), 'exists method createRouteRows' );
|
||||
$r = new ReflectionMethod('Tasks', 'createRouteRows');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'aRoutes');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::updateRouteRows
|
||||
* @todo Implement testupdateRouteRows().
|
||||
*/
|
||||
public function testupdateRouteRows()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'updateRouteRows', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testupdateRouteRows()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('updateRouteRows', $methods ), 'exists method updateRouteRows' );
|
||||
$r = new ReflectionMethod('Tasks', 'updateRouteRows');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'aRoutes');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::getUsersOfTask
|
||||
* @todo Implement testgetUsersOfTask().
|
||||
*/
|
||||
public function testgetUsersOfTask()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'getUsersOfTask', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetUsersOfTask()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getUsersOfTask', $methods ), 'exists method getUsersOfTask' );
|
||||
$r = new ReflectionMethod('Tasks', 'getUsersOfTask');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTaskUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'iType');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::deleteTask
|
||||
* @todo Implement testdeleteTask().
|
||||
*/
|
||||
public function testdeleteTask()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'deleteTask', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testdeleteTask()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('deleteTask', $methods ), 'exists method deleteTask' );
|
||||
$r = new ReflectionMethod('Tasks', 'deleteTask');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTaskUID');
|
||||
$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.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::deleteAllRoutesOfTask
|
||||
* @todo Implement testdeleteAllRoutesOfTask().
|
||||
*/
|
||||
public function testdeleteAllRoutesOfTask()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'deleteAllRoutesOfTask', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testdeleteAllRoutesOfTask()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('deleteAllRoutesOfTask', $methods ), 'exists method deleteAllRoutesOfTask' );
|
||||
$r = new ReflectionMethod('Tasks', 'deleteAllRoutesOfTask');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'sTaskUID');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'bAll');
|
||||
$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.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::getAllGateways
|
||||
* @todo Implement testgetAllGateways().
|
||||
*/
|
||||
public function testgetAllGateways()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'getAllGateways', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetAllGateways()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getAllGateways', $methods ), 'exists method getAllGateways' );
|
||||
$r = new ReflectionMethod('Tasks', 'getAllGateways');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sProUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::createGatewayRows
|
||||
* @todo Implement testcreateGatewayRows().
|
||||
*/
|
||||
public function testcreateGatewayRows()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'createGatewayRows', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testcreateGatewayRows()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('createGatewayRows', $methods ), 'exists method createGatewayRows' );
|
||||
$r = new ReflectionMethod('Tasks', 'createGatewayRows');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'aGateway');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::deleteAllGatewayOfTask
|
||||
* @todo Implement testdeleteAllGatewayOfTask().
|
||||
*/
|
||||
public function testdeleteAllGatewayOfTask()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'deleteAllGatewayOfTask', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testdeleteAllGatewayOfTask()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('deleteAllGatewayOfTask', $methods ), 'exists method deleteAllGatewayOfTask' );
|
||||
$r = new ReflectionMethod('Tasks', 'deleteAllGatewayOfTask');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'sTaskUID');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'bAll');
|
||||
$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.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::assignUser
|
||||
* @todo Implement testassignUser().
|
||||
*/
|
||||
public function testassignUser()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'assignUser', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testassignUser()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('assignUser', $methods ), 'exists method assignUser' );
|
||||
$r = new ReflectionMethod('Tasks', 'assignUser');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTaskUID');
|
||||
$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->assertTrue( $params[2]->getName() == 'iType');
|
||||
$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.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::assignGroup
|
||||
* @todo Implement testassignGroup().
|
||||
*/
|
||||
public function testassignGroup()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'assignGroup', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testassignGroup()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('assignGroup', $methods ), 'exists method assignGroup' );
|
||||
$r = new ReflectionMethod('Tasks', 'assignGroup');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTaskUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'sGroupUID');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'iType');
|
||||
$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.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::ofToAssignUserOfAllTasks
|
||||
* @todo Implement testofToAssignUserOfAllTasks().
|
||||
*/
|
||||
public function testofToAssignUserOfAllTasks()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'ofToAssignUserOfAllTasks', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testofToAssignUserOfAllTasks()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('ofToAssignUserOfAllTasks', $methods ), 'exists method ofToAssignUserOfAllTasks' );
|
||||
$r = new ReflectionMethod('Tasks', 'ofToAssignUserOfAllTasks');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sUserUID');
|
||||
$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.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::ofToAssignUser
|
||||
* @todo Implement testofToAssignUser().
|
||||
*/
|
||||
public function testofToAssignUser()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'ofToAssignUser', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testofToAssignUser()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('ofToAssignUser', $methods ), 'exists method ofToAssignUser' );
|
||||
$r = new ReflectionMethod('Tasks', 'ofToAssignUser');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTaskUID');
|
||||
$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->assertTrue( $params[2]->getName() == 'iType');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '0');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::ofToAssignGroup
|
||||
* @todo Implement testofToAssignGroup().
|
||||
*/
|
||||
public function testofToAssignGroup()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'ofToAssignGroup', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testofToAssignGroup()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('ofToAssignGroup', $methods ), 'exists method ofToAssignGroup' );
|
||||
$r = new ReflectionMethod('Tasks', 'ofToAssignGroup');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTaskUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == true);
|
||||
$this->assertTrue( $params[0]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[1]->getName() == 'sGroupUID');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == true);
|
||||
$this->assertTrue( $params[1]->getDefaultValue() == '');
|
||||
$this->assertTrue( $params[2]->getName() == 'iType');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == true);
|
||||
$this->assertTrue( $params[2]->getDefaultValue() == '0');
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::getStepsOfTask
|
||||
* @todo Implement testgetStepsOfTask().
|
||||
*/
|
||||
public function testgetStepsOfTask()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'getStepsOfTask', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetStepsOfTask()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getStepsOfTask', $methods ), 'exists method getStepsOfTask' );
|
||||
$r = new ReflectionMethod('Tasks', 'getStepsOfTask');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTaskUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::existsBuildingElements
|
||||
* @todo Implement testexistsBuildingElements().
|
||||
*/
|
||||
public function testexistsBuildingElements()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'existsBuildingElements', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testexistsBuildingElements()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('existsBuildingElements', $methods ), 'exists method existsBuildingElements' );
|
||||
$r = new ReflectionMethod('Tasks', 'existsBuildingElements');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sProcessUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::getStartingTaskForUser
|
||||
* @todo Implement testgetStartingTaskForUser().
|
||||
*/
|
||||
public function testgetStartingTaskForUser()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'getStartingTaskForUser', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetStartingTaskForUser()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getStartingTaskForUser', $methods ), 'exists method getStartingTaskForUser' );
|
||||
$r = new ReflectionMethod('Tasks', 'getStartingTaskForUser');
|
||||
$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() == 'sUsrUid');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::assignUsertoTask
|
||||
* @todo Implement testassignUsertoTask().
|
||||
*/
|
||||
public function testassignUsertoTask()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'assignUsertoTask', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testassignUsertoTask()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('assignUsertoTask', $methods ), 'exists method assignUsertoTask' );
|
||||
$r = new ReflectionMethod('Tasks', 'assignUsertoTask');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sTaskUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::verifyUsertoTask
|
||||
* @todo Implement testverifyUsertoTask().
|
||||
*/
|
||||
public function testverifyUsertoTask()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'verifyUsertoTask', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testverifyUsertoTask()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('verifyUsertoTask', $methods ), 'exists method verifyUsertoTask' );
|
||||
$r = new ReflectionMethod('Tasks', 'verifyUsertoTask');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sUsrUid');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->assertTrue( $params[1]->getName() == 'sTaskUID');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::getTasksThatUserIsAssigned
|
||||
* @todo Implement testgetTasksThatUserIsAssigned().
|
||||
*/
|
||||
public function testgetTasksThatUserIsAssigned()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'getTasksThatUserIsAssigned', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetTasksThatUserIsAssigned()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getTasksThatUserIsAssigned', $methods ), 'exists method getTasksThatUserIsAssigned' );
|
||||
$r = new ReflectionMethod('Tasks', 'getTasksThatUserIsAssigned');
|
||||
$params = $r->getParameters();
|
||||
$this->assertTrue( $params[0]->getName() == 'sUserUID');
|
||||
$this->assertTrue( $params[0]->isArray() == false);
|
||||
$this->assertTrue( $params[0]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::getRoute
|
||||
* @todo Implement testgetRoute().
|
||||
*/
|
||||
public function testgetRoute()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'getRoute', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetRoute()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getRoute', $methods ), 'exists method getRoute' );
|
||||
$r = new ReflectionMethod('Tasks', 'getRoute');
|
||||
$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() == 'sTaskUid');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Tasks::getRouteByType
|
||||
* @todo Implement testgetRouteByType().
|
||||
*/
|
||||
public function testgetRouteByType()
|
||||
{
|
||||
if (class_exists('Tasks')) {
|
||||
$methods = get_class_methods( 'Tasks');
|
||||
$this->assertTrue( in_array( 'getRouteByType', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
public function testgetRouteByType()
|
||||
{
|
||||
$methods = get_class_methods($this->object);
|
||||
$this->assertTrue( in_array('getRouteByType', $methods ), 'exists method getRouteByType' );
|
||||
$r = new ReflectionMethod('Tasks', 'getRouteByType');
|
||||
$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() == 'sRouteNextTaskUid');
|
||||
$this->assertTrue( $params[1]->isArray() == false);
|
||||
$this->assertTrue( $params[1]->isOptional () == false);
|
||||
$this->assertTrue( $params[2]->getName() == 'sRouteType');
|
||||
$this->assertTrue( $params[2]->isArray() == false);
|
||||
$this->assertTrue( $params[2]->isOptional () == false);
|
||||
$this->markTestIncomplete('This test has not been implemented yet.');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user