- Fixed codeception test

- Updated the api test suite
- Added the script generate.php to automatically generate the test cases
for the controllers
This commit is contained in:
bison-paolo
2016-11-23 15:09:10 +01:00
parent 68a696cdc8
commit d96a0e98d5
279 changed files with 1360 additions and 1703 deletions
@@ -1,27 +0,0 @@
<?php
require_once(dirname(__FILE__).'/../../../include/basis.class.php');
class ExampleTest extends \Codeception\TestCase\Test
{
/**
* @var \UnitTester
*/
protected $tester;
protected function _before()
{
}
protected function _after()
{
}
// tests
public function testMe()
{
$bc = new basis();
$bc->errormsg=true;
$this->assertTrue($bc->getErrorMsg());
}
}
+25
View File
@@ -0,0 +1,25 @@
<?php
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
* @method void comment($description)
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = NULL)
*
* @SuppressWarnings(PHPMD)
*/
class UnitTester extends \Codeception\Actor
{
use _generated\UnitTesterActions;
/**
* Define custom actions here
*/
}