diff --git a/tests/automated/workflow/engine/classes/classwsBaseTest.php b/tests/automated/workflow/engine/classes/classwsBaseTest.php index 82a578c04..1b9a51bd5 100644 --- a/tests/automated/workflow/engine/classes/classwsBaseTest.php +++ b/tests/automated/workflow/engine/classes/classwsBaseTest.php @@ -44,7 +44,7 @@ class classwsBaseTest extends PHPUnit_Framework_TestCase public function testNumberOfMethodsInThisClass() { $methods = get_class_methods('wsBase'); - $this->assertTrue( count($methods) == 40, count($methods)); + $this->assertTrue( count($methods) == 41, count($methods)); } /** @@ -487,6 +487,21 @@ class classwsBaseTest extends PHPUnit_Framework_TestCase $this->assertTrue( $params[1]->isOptional () == false); } + /** + * @covers wsBase::getVariablesNames + * @todo Implement testgetVariablesNames(). + */ + public function testgetVariablesNames() + { + $methods = get_class_methods($this->object); + $this->assertTrue( in_array('getVariablesNames', $methods ), 'exists method getVariablesNames' ); + $r = new ReflectionMethod('wsBase', 'getVariablesNames'); + $params = $r->getParameters(); + $this->assertTrue( $params[0]->getName() == 'caseId'); + $this->assertTrue( $params[0]->isArray() == false); + $this->assertTrue( $params[0]->isOptional () == false); + } + /** * @covers wsBase::newCase * @todo Implement testnewCase().