BUG 0000 Test Units for workflow.engine.classes
This commit is contained in:
75
tests/workflow/engine/classes/classDynaFormFieldTest.php
Normal file
75
tests/workflow/engine/classes/classDynaFormFieldTest.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?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.dynaFormField.php';
|
||||
|
||||
/**
|
||||
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:17.
|
||||
*/
|
||||
|
||||
class classDynaFormFieldTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @covers DynaFormField::SetTo
|
||||
* @todo Implement testSetTo().
|
||||
*/
|
||||
public function testSetTo()
|
||||
{
|
||||
if (class_exists('DynaFormField')) {
|
||||
$methods = get_class_methods( 'DynaFormField');
|
||||
$this->assertTrue( in_array( 'SetTo', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DynaFormField::Load
|
||||
* @todo Implement testLoad().
|
||||
*/
|
||||
public function testLoad()
|
||||
{
|
||||
if (class_exists('DynaFormField')) {
|
||||
$methods = get_class_methods( 'DynaFormField');
|
||||
$this->assertTrue( in_array( 'Load', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DynaFormField::Delete
|
||||
* @todo Implement testDelete().
|
||||
*/
|
||||
public function testDelete()
|
||||
{
|
||||
if (class_exists('DynaFormField')) {
|
||||
$methods = get_class_methods( 'DynaFormField');
|
||||
$this->assertTrue( in_array( 'Delete', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DynaFormField::Save
|
||||
* @todo Implement testSave().
|
||||
*/
|
||||
public function testSave()
|
||||
{
|
||||
if (class_exists('DynaFormField')) {
|
||||
$methods = get_class_methods( 'DynaFormField');
|
||||
$this->assertTrue( in_array( 'Save', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers DynaFormField::isNew
|
||||
* @todo Implement testisNew().
|
||||
*/
|
||||
public function testisNew()
|
||||
{
|
||||
if (class_exists('DynaFormField')) {
|
||||
$methods = get_class_methods( 'DynaFormField');
|
||||
$this->assertTrue( in_array( 'isNew', $methods ), 'seems like this function is outside this class' );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user