- 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
View File
@@ -16,6 +16,7 @@ tests/codeception/codeception.yml
tests/codeception/tests/api.suite.yml
tests/codeception/tests/functional.suite.yml
tests/codeception/tests/acceptance.suite.yml
tests/codeception/tests/unit.suite.yml
/submodules/d3
composer.lock
bin
-150
View File
@@ -1,150 +0,0 @@
<?php
/**
* @file
* This is an example of a few basic user interaction methods you could use
* all done with a hardcoded array
*
* @package CodeIgniter
* @subpackage Rest Server
* @category Controller
* @author Phil Sturgeon, Chris Kacerguis
* @license MIT
* @link https://github.com/chriskacerguis/codeigniter-restserver
*/
if (! defined('BASEPATH'))
exit('No direct script access allowed');
// This can be removed if you use __autoload() in config.php OR use Modular Extensions
require APPPATH.'/libraries/REST_Controller.php';
class Example extends REST_Controller
{
/**
* @copydoc REST_Controller::__construct()
*/
public function __construct()
{
// Construct the parent class
parent::__construct();
// Configure limits on our controller methods
// Ensure you have created the 'limits' table and enabled 'limits' within application/config/rest.php
$this->methods['user_get']['limit'] = 500; // 500 requests per hour per user/key
$this->methods['user_post']['limit'] = 100; // 100 requests per hour per user/key
$this->methods['user_delete']['limit'] = 50; // 50 requests per hour per user/key
}
/**
* @return void
*/
public function users_get()
{
// Users from a data store e.g. database
$users = [
['id' => 1, 'name' => 'John', 'email' => 'john@example.com', 'fact' => 'Loves coding'],
['id' => 2, 'name' => 'Jim', 'email' => 'jim@example.com', 'fact' => 'Developed on CodeIgniter'],
['id' => 3, 'name' => 'Jane', 'email' => 'jane@example.com', 'fact' => 'Lives in the USA', ['hobbies' => ['guitar', 'cycling']]],
];
$id = $this->get('id');
// If the id parameter doesn't exist return all the users
if ($id === null)
{
// Check if the users data store contains users (in case the database result returns null)
if ($users)
{
// Set the response and exit
$this->response($users, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
}
else
{
// Set the response and exit
$this->response([
'status' => false,
'message' => 'No users were found'
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
}
}
// Find and return a single record for a particular user.
$id = (int)$id;
// Validate the id.
if ($id <= 0)
{
// Invalid id, set the response and exit.
$this->response(null, REST_Controller::HTTP_BAD_REQUEST); // BAD_REQUEST (400) being the HTTP response code
}
// Get the user from the array, using the id as key for retreival.
// Usually a model is to be used for this.
$user = null;
if (!empty($users))
{
foreach ($users as $key => $value)
{
if (isset($value['id']) && $value['id'] === $id)
{
$user = $value;
}
}
}
if (!empty($user))
{
$this->set_response($user, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
}
else
{
$this->set_response([
'status' => false,
'message' => 'User could not be found'
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
}
}
/**
* @return void
*/
public function users_post()
{
// $this->some_model->update_user( ... );
$message = [
'id' => 100, // Automatically generated by the model
'name' => $this->post('name'),
'email' => $this->post('email'),
'message' => 'Added a resource'
];
$this->set_response($message, REST_Controller::HTTP_CREATED); // CREATED (201) being the HTTP response code
}
/**
* @return void
*/
public function users_delete()
{
$id = (int)$this->get('id');
// Validate the id.
if ($id <= 0)
{
// Set the response and exit
$this->response(null, REST_Controller::HTTP_BAD_REQUEST); // BAD_REQUEST (400) being the HTTP response code
}
// $this->some_model->delete_something($id);
$message = [
'id' => $id,
'message' => 'Deleted the resource'
];
// NO_CONTENT (204) being the HTTP response code
$this->set_response($message, REST_Controller::HTTP_NO_CONTENT);
}
}
-56
View File
@@ -1,56 +0,0 @@
<?php
/**
* Whisperocity
*
* @package Whisperocity
* @author WSP-Team
* @copyright Copyright (c) 2015, Whisperocity
* @license proprietary
* @link http://whisperocity.com/
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
if (! defined('BASEPATH')) exit('No direct script access allowed');
// This can be removed if you use __autoload() in config.php OR use Modular Extensions
require APPPATH . '/libraries/REST_Controller.php';
/**
* Handles ping attempts of applications
*/
class Ping extends REST_Controller {
/**
* Ping-Controller constructor.
* A more elaborate description of the constructor.
*/
function __construct()
{
// Construct the parent class
parent::__construct();
// Configure limits on our controller methods
// Ensure you have created the 'limits' table and enabled 'limits' within application/config/rest.php
$this->methods['ping_get']['limit'] = 500; // 500 requests per hour per user/key
}
/**
* Responds to ping attempts of applications
* @return string JSON which acknowledges the ping attempt
* @example http://wsp.fortyseeds.at/backend/api/ping
*/
public function index_get()
{
$payload = [
'success' => true,
'message' => 'ping received'
];
// Set the response and exit
$this->response($payload, REST_Controller::HTTP_OK);
}
}
+4 -2
View File
@@ -25,7 +25,8 @@ class Test extends APIv1_Controller
{
$payload = [
'success' => TRUE,
'message' => 'API HTTP GET call test succeed'
'message' => 'API HTTP GET call test succeed',
'error' => 0
];
$httpstatus = REST_Controller::HTTP_OK;
$this->response($payload, $httpstatus);
@@ -42,7 +43,8 @@ class Test extends APIv1_Controller
{
$payload = [
'success' => TRUE,
'message' => 'API HTTP POST call test succeed'
'message' => 'API HTTP POST call test succeed',
'error' => 0
];
$httpstatus = REST_Controller::HTTP_OK;
$this->response($payload, $httpstatus);
@@ -9,6 +9,6 @@ class Kriterien_model extends DB_Model
{
parent::__construct();
$this->dbTable = 'testtool.tbl_kriterien';
$this->pk = '';
$this->pk = 'kategorie_kurzbz';
}
}
@@ -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
*/
}
+1 -1
View File
@@ -4,7 +4,7 @@ modules:
- Db
- REST:
# API URL
url: http://demo.fhcomplete.org/index.ci.php/api/
url: 'http://admin:1q2w3@demo.fhcomplete.org/index.ci.php/api/'
# Can also be a framework module name
depends: PhpBrowser
# Limits PhpBrowser to JSON or XML
+178
View File
@@ -0,0 +1,178 @@
<?php
/**
* Recursively finds all files in the given folder
*/
function lstFiles($dir, $lst = null)
{
$retLst = array();
if ($lst == null)
$lst = scandir($dir);
$lst = array_diff($lst, array('..', '.'));
foreach ($lst as $el)
{
if (is_dir($dir.'/'.$el))
{
$retLst = array_merge($retLst, lstFiles($dir.'/'.$el, scandir($dir.'/'.$el)));
}
else
{
array_push($retLst, $dir.'/'.$el);
}
}
return $retLst;
}
// Get a list of every file present in the given folder
$lstFiles = lstFiles('../../../../application/controllers/api/v1');
// Automatically detects the line ending character
ini_set('auto_detect_line_endings', true);
// Gets the template of the header of the test file
if (($fileTplHead = file_get_contents('./template_head.tpl')) === false)
die('Problems loading template_head.tpl');
// Gets the template of the body of the test file
if (($fileTplCall = file_get_contents('./template_call.tpl')) === false)
die('Problems loading template_call.tpl');
// Loops the list of files
foreach($lstFiles as $file)
{
// Open the file for reading
if (($fileHandle = fopen($file, 'r')) !== false)
{
$name = ''; // Name of the test
$functions = array(); // List of functions
$functionsCounter = -1; // Functions counter
// Reads from the file line by line
while (($line = fgets($fileHandle, 4096)) !== false)
{
// Drops the spaces at the beginning and at the and of the line
$line = trim($line);
// If it is the line that declare the class
if (strpos($line, 'class') !== false)
{
$name = explode(' ', $line)[1];
}
// If it is a line that declare a function
if (strpos($line, 'public function get') !== false)
{
$functionsCounter++;
$functions[$functionsCounter] = array();
$functions[$functionsCounter]['name'] = trim(preg_replace('/^get/i', ' ', explode(' ', $line)[2]));
$functions[$functionsCounter]['name'] = trim(str_replace('()', ' ', $functions[$functionsCounter]['name']));
$functions[$functionsCounter]['parameters'] = array();
}
// If it is a line that get a parameter
if (strpos($line, 'this->get') !== false)
{
$parameters = explode('\'', $line);
if (count($parameters) >= 2)
{
$functions[$functionsCounter]['parameters'][] = $parameters[1];
}
else
{
$parameters = explode('"', $line);
if (count($parameters) >= 2)
{
$functions[$functionsCounter]['parameters'][] = $parameters[1];
}
}
}
}
fclose($fileHandle); // Closing the file pointer is always a good thing
// Gets the path of the api
$apiPath = trim(str_replace('../../../../application/controllers/api/', ' ', $file));
$apiPath = substr($apiPath, 0, strrpos($apiPath, '/') + 1);
// Prefix of the test file name given by the parent folder
$namePrefix = trim(str_replace('v1/', ' ', $apiPath));
$namePrefix = ucfirst(trim(str_replace('/', ' ', $namePrefix)));
// If if is not a fake
if (trim($name) != '')
{
// Where to create the test files
$testDir = './v1/';
// If the test file is not already present
if (!file_exists($testDir.$namePrefix.$name.'Cept.php'))
{
// Create and open the test file for writing
if (($fileTestHandle = fopen($testDir.$namePrefix.$name.'Cept.php', 'w')) !== false)
{
// Lst of function to place in the header
$strLstFunctions = '';
for($i = 0; $i < count($functions); $i++)
{
$function = $functions[$i];
if ($i == 0)
{
$strLstFunctions .= $apiPath.$name.'/'.': ';
}
$strLstFunctions .= $function['name'];
if ($i < count($functions) - 1)
{
$strLstFunctions .= ' ';
}
}
// Create the test file header using the template
$strToWrite = str_replace('_CALL_', $strLstFunctions, $fileTplHead);
// Writes the header into the test file
if (fwrite($fileTestHandle, $strToWrite."\n") === false)
{
echo 'Error!!!';
}
// For every function create a call
foreach($functions as $function)
{
// Gets a list of parameters
$strLstParameters = '';
for($i = 0; $i < count($function['parameters']); $i++)
{
$parameter = $function['parameters'][$i];
$strLstParameters .= '"'.$parameter.'" => "1"';
if ($i < count($function['parameters']) - 1)
{
$strLstParameters .= ", ";
}
}
// Create the call using the template
$strToWrite = str_replace('_CALL_', $apiPath.$name.'/'.$function['name'], $fileTplCall);
$strToWrite = str_replace('_PARAMETERS_', $strLstParameters, $strToWrite);
// Write it into the test file
if (fwrite($fileTestHandle, $strToWrite."\n") === false)
{
echo 'Error!!!';
}
}
fclose($fileTestHandle); // As usual
}
else
{
echo "Error opening file: ".$testDir.$name.'Cept.php'."\n";
}
}
else
{
echo $testDir.$name."Cept.php is already present\n";
}
}
}
}
?>
@@ -0,0 +1,5 @@
$I->sendGET("_CALL_", array(_PARAMETERS_));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -0,0 +1,6 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call _CALL_");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Aufteilung/Aufteilung");
$I->wantTo("Test API call v1/accounting/Aufteilung/: Aufteilung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Aufteilung/Aufteilung", array("aufteilung_id" => "0"));
$I->sendGET("v1/accounting/Aufteilung/Aufteilung", array("aufteilung_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Bestelldetail/Bestelldetail");
$I->wantTo("Test API call v1/accounting/Bestelldetail/: Bestelldetail");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Bestelldetail/Bestelldetail", array("bestelldetail_id" => "0"));
$I->sendGET("v1/accounting/Bestelldetail/Bestelldetail", array("bestelldetail_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Bestelldetailtag/Bestelldetailtag");
$I->wantTo("Test API call v1/accounting/Bestelldetailtag/: Bestelldetailtag");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Bestelldetailtag/Bestelldetailtag", array("bestelldetail_id" => "0", "tag" => "0"));
$I->sendGET("v1/accounting/Bestelldetailtag/Bestelldetailtag", array("bestelldetail_id" => "1", "tag" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Bestellstatus/Bestellstatus");
$I->wantTo("Test API call v1/accounting/Bestellstatus/: Bestellstatus");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Bestellstatus/Bestellstatus", array("bestellstatus_kurzbz" => "0"));
$I->sendGET("v1/accounting/Bestellstatus/Bestellstatus", array("bestellstatus_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Bestellung/Bestellung");
$I->wantTo("Test API call v1/accounting/Bestellung/: Bestellung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Bestellung/Bestellung", array("bestellung_id" => "0"));
$I->sendGET("v1/accounting/Bestellung/Bestellung", array("bestellung_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Bestellungtag/Bestellungtag");
$I->wantTo("Test API call v1/accounting/Bestellungtag/: Bestellungtag");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Bestellungtag/Bestellungtag", array("bestellung_id" => "0", "tag" => "0"));
$I->sendGET("v1/accounting/Bestellungtag/Bestellungtag", array("bestellung_id" => "1", "tag" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Buchung/Buchung");
$I->wantTo("Test API call v1/accounting/Buchung/: Buchung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Buchung/Buchung", array("buchung_id" => "0"));
$I->sendGET("v1/accounting/Buchung/Buchung", array("buchung_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Buchungstyp/Buchungstyp");
$I->wantTo("Test API call v1/accounting/Buchungstyp/: Buchungstyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Buchungstyp/Buchungstyp", array("buchungstyp_kurzbz" => "0"));
$I->sendGET("v1/accounting/Buchungstyp/Buchungstyp", array("buchungstyp_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Budget/Budget");
$I->wantTo("Test API call v1/accounting/Budget/: Budget");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Budget/Budget", array("kostenstelle_id" => "0", "geschaeftsjahr_kurzbz" => "0"));
$I->sendGET("v1/accounting/Budget/Budget", array("kostenstelle_id" => "1", "geschaeftsjahr_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/kontakt/Kontakt");
$I->wantTo("Test API call v1/accounting/Konto/: Konto");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/kontakt/Kontakt", array("kontakt_id" => 0));
$I->sendGET("v1/accounting/Konto/Konto", array("konto_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Kostenstelle/Kostenstelle");
$I->wantTo("Test API call v1/accounting/Kostenstelle/: Kostenstelle");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Kostenstelle/Kostenstelle", array("kostenstelle_id" => "0"));
$I->sendGET("v1/accounting/Kostenstelle/Kostenstelle", array("kostenstelle_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Rechnung/Rechnung");
$I->wantTo("Test API call v1/accounting/Rechnung/: Rechnung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Rechnung/Rechnung", array("rechnung_id" => "0"));
$I->sendGET("v1/accounting/Rechnung/Rechnung", array("rechnung_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Rechnungsbetrag/Rechnungsbetrag");
$I->wantTo("Test API call v1/accounting/Rechnungsbetrag/: Rechnungsbetrag");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Rechnungsbetrag/Rechnungsbetrag", array("rechnungsbetrag_id" => "0"));
$I->sendGET("v1/accounting/Rechnungsbetrag/Rechnungsbetrag", array("rechnungsbetrag_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Rechnungstyp/Rechnungstyp");
$I->wantTo("Test API call v1/accounting/Rechnungstyp/: Rechnungstyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Rechnungstyp/Rechnungstyp", array("rechnungstyp_kurzbz" => "0"));
$I->sendGET("v1/accounting/Rechnungstyp/Rechnungstyp", array("rechnungstyp_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Vertrag/Vertrag");
$I->wantTo("Test API call v1/accounting/Vertrag/: Vertrag");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Vertrag/Vertrag", array("vertrag_id" => "0"));
$I->sendGET("v1/accounting/Vertrag/Vertrag", array("vertrag_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Vertragsstatus/Vertragsstatus");
$I->wantTo("Test API call v1/accounting/Vertragsstatus/: Vertragsstatus");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Vertragsstatus/Vertragsstatus", array("vertragsstatus_kurzbz" => "0"));
$I->sendGET("v1/accounting/Vertragsstatus/Vertragsstatus", array("vertragsstatus_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Vertragstyp/Vertragstyp");
$I->wantTo("Test API call v1/accounting/Vertragstyp/: Vertragstyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Vertragstyp/Vertragstyp", array("vertragstyp_kurzbz" => "0"));
$I->sendGET("v1/accounting/Vertragstyp/Vertragstyp", array("vertragstyp_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Zahlungstyp/Zahlungstyp");
$I->wantTo("Test API call v1/accounting/Zahlungstyp/: Zahlungstyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Zahlungstyp/Zahlungstyp", array("zahlungstyp_kurzbz" => "0"));
$I->sendGET("v1/accounting/Zahlungstyp/Zahlungstyp", array("zahlungstyp_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,12 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Akte/Akte");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Akte/Akte", array("akte_id" => "0", "person_id" => "0", "dokument_kurzbz" => "0", "stg_kz" => "0", "prestudent_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,12 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/anrechnung/Anrechnung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/anrechnung/Anrechnung", array("anrechnung_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,12 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/system/appdaten/Appdaten");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/system/appdaten/Appdaten", array("appdaten_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,19 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo('Test the HTTP basic autentication whith HTTP GET and POST method and the API Keys');
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader('FHC-API-KEY', 'testapikey@fhcomplete.org');
$I->sendGET('v1/Test/test');
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson([
'success' => true,
'message' => 'API HTTP GET call test succeed']);
$I->sendPOST('v1/Test/test');
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson([
'success' => true,
'message' => 'API HTTP POST call test succeed']);
@@ -1,12 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/beispiel/Beispiel");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/beispiel/Beispiel", array("beispiel_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,12 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/Benutzer/Benutzer");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/Benutzer/Benutzer", array("uid" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,12 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/education/betreuerart/Betreuerart");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/education/betreuerart/Betreuerart", array("betreuerart_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,12 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/ressource/betriebsmittelperson/Betriebsmittelperson");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/ressource/betriebsmittelperson/Betriebsmittelperson", array("betriebsmittelperson_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,12 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Bewerbungstermine/Bewerbungstermine");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Bewerbungstermine/Bewerbungstermine", array("bewerbungstermine_id" => "0", "studiengang_kz" => "0", "studiensemester_kurzbz" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,12 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call TO_BE_REPLACED_NAME");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("TO_BE_REPLACED_NAME", array(TO_BE_REPLACED_PARAMETERS));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/CheckUserAuth/CheckByUsernamePassword");
$I->wantTo("Test API call v1/CheckUserAuth/: CheckByUsernamePassword");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/CheckUserAuth/CheckByUsernamePassword", array("username" => "admin", "password" => "1q2w3"));
$I->sendGET("v1/CheckUserAuth/CheckByUsernamePassword", array("username" => "1", "password" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Akadgrad/Akadgrad");
$I->wantTo("Test API call v1/codex/Akadgrad/: Akadgrad");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Akadgrad/Akadgrad", array("akadgrad_id" => "0"));
$I->sendGET("v1/codex/Akadgrad/Akadgrad", array("akadgrad_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/testtool/Frage/Frage");
$I->wantTo("Test API call v1/codex/Archiv/: Archiv");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/testtool/Frage/Frage", array("frage_id" => "0"));
$I->sendGET("v1/codex/Archiv/Archiv", array("archiv_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Aufmerksamdurch/Aufmerksamdurch");
$I->wantTo("Test API call v1/codex/Aufmerksamdurch/: Aufmerksamdurch");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Aufmerksamdurch/Aufmerksamdurch", array("aufmerksamdurch_kurzbz" => "0"));
$I->sendGET("v1/codex/Aufmerksamdurch/Aufmerksamdurch", array("aufmerksamdurch_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Ausbildung/Ausbildung");
$I->wantTo("Test API call v1/codex/Ausbildung/: Ausbildung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Ausbildung/Ausbildung", array("ausbildungcode" => "0"));
$I->sendGET("v1/codex/Ausbildung/Ausbildung", array("ausbildungcode" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Berufstaetigkeit/Berufstaetigkeit");
$I->wantTo("Test API call v1/codex/Berufstaetigkeit/: Berufstaetigkeit");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Berufstaetigkeit/Berufstaetigkeit", array("berufstaetigkeit_code" => "0"));
$I->sendGET("v1/codex/Berufstaetigkeit/Berufstaetigkeit", array("berufstaetigkeit_code" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Beschaeftigungsausmass/Beschaeftigungsausmass");
$I->wantTo("Test API call v1/codex/Beschaeftigungsausmass/: Beschaeftigungsausmass");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Beschaeftigungsausmass/Beschaeftigungsausmass", array("beschausmasscode" => "0"));
$I->sendGET("v1/codex/Beschaeftigungsausmass/Beschaeftigungsausmass", array("beschausmasscode" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Besqual/Besqual");
$I->wantTo("Test API call v1/codex/Besqual/: Besqual");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Besqual/Besqual", array("besqualcode" => "0"));
$I->sendGET("v1/codex/Besqual/Besqual", array("besqualcode" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Bisfunktion/Bisfunktion");
$I->wantTo("Test API call v1/codex/Bisfunktion/: Bisfunktion");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Bisfunktion/Bisfunktion", array("studiengang_kz" => "0", "bisverwendung_id" => "0"));
$I->sendGET("v1/codex/Bisfunktion/Bisfunktion", array("studiengang_kz" => "1", "bisverwendung_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Bisio/: Bisio");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Bisio/Bisio", array("bisio_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Bisorgform/Bisorgform");
$I->wantTo("Test API call v1/codex/Bisorgform/: Bisorgform");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Bisorgform/Bisorgform", array("bisorgform_kurzbz" => "0"));
$I->sendGET("v1/codex/Bisorgform/Bisorgform", array("bisorgform_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Bisverwendung/Bisverwendung");
$I->wantTo("Test API call v1/codex/Bisverwendung/: Bisverwendung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Bisverwendung/Bisverwendung", array("bisverwendung_id" => "0"));
$I->sendGET("v1/codex/Bisverwendung/Bisverwendung", array("bisverwendung_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/system/Tag/Tag");
$I->wantTo("Test API call v1/codex/Bundesland/: All");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/system/Tag/Tag", array("tag" => "0"));
$I->sendGET("v1/codex/Bundesland/All", array());
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Entwicklungsteam/Entwicklungsteam");
$I->wantTo("Test API call v1/codex/Entwicklungsteam/: Entwicklungsteam");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Entwicklungsteam/Entwicklungsteam", array("studiengang_kz" => "0", "mitarbeiter_uid" => "0"));
$I->sendGET("v1/codex/Entwicklungsteam/Entwicklungsteam", array("studiengang_kz" => "1", "mitarbeiter_uid" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,17 +1,15 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/organisation/studiengang Studiengang and AllForBewerbung");
$I->wantTo("Test API call v1/codex/Gemeinde/: Gemeinde GemeindeByPlz");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/organisation/studiengang/Studiengang", array("studiengang_kz" => 1));
$I->sendGET("v1/codex/Gemeinde/Gemeinde", array("gemeinde_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/organisation/studiengang/AllForBewerbung");
$I->sendGET("v1/codex/Gemeinde/GemeindeByPlz", array("plz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Hauptberuf/Hauptberuf");
$I->wantTo("Test API call v1/codex/Hauptberuf/: Hauptberuf");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Hauptberuf/Hauptberuf", array("hauptberufcode" => "0"));
$I->sendGET("v1/codex/Hauptberuf/Hauptberuf", array("hauptberufcode" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Lehrform/Lehrform");
$I->wantTo("Test API call v1/codex/Lehrform/: Lehrform");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Lehrform/Lehrform", array("lehrform_kurzbz" => "0"));
$I->sendGET("v1/codex/Lehrform/Lehrform", array("lehrform_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Lgartcode/Lgartcode");
$I->wantTo("Test API call v1/codex/Lgartcode/: Lgartcode");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Lgartcode/Lgartcode", array("lgartcode" => "0"));
$I->sendGET("v1/codex/Lgartcode/Lgartcode", array("lgartcode" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Mobilitaetsprogramm/Mobilitaetsprogramm");
$I->wantTo("Test API call v1/codex/Mobilitaetsprogramm/: Mobilitaetsprogramm");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Mobilitaetsprogramm/Mobilitaetsprogramm", array("mobilitaetsprogramm_code" => "0"));
$I->sendGET("v1/codex/Mobilitaetsprogramm/Mobilitaetsprogramm", array("mobilitaetsprogramm_code" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,17 +1,15 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/prestudent Prestudent and PrestudentByPersonID");
$I->wantTo("Test API call v1/codex/Nation/: Nation All");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/prestudent/Prestudent", array("prestudent_id" => 1));
$I->sendGET("v1/codex/Nation/Nation", array("nation_code" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/crm/prestudent/PrestudentByPersonID", array("person_id" => 3));
$I->sendGET("v1/codex/Nation/All", array("orderEnglish" => "1", "ohnesperre" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/system/Log/Log");
$I->wantTo("Test API call v1/codex/Note/: Note");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/system/Log/Log", array("log_id" => "0"));
$I->sendGET("v1/codex/Note/Note", array("note" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,23 +1,20 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/orgform Orgform, OrgformLV and All");
$I->wantTo("Test API call v1/codex/Orgform/: Orgform All OrgformLV");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/orgform/Orgform", array("orgform_kurzbz" => "VZ"));
$I->sendGET("v1/codex/Orgform/Orgform", array("orgform_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/codex/orgform/All");
$I->sendGET("v1/codex/Orgform/All", array());
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/codex/orgform/OrgformLV");
$I->sendGET("v1/codex/Orgform/OrgformLV", array());
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Verwendung/Verwendung");
$I->wantTo("Test API call v1/codex/Verwendung/: Verwendung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Verwendung/Verwendung", array("verwendung_code" => "0"));
$I->sendGET("v1/codex/Verwendung/Verwendung", array("verwendung_code" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Note/Note");
$I->wantTo("Test API call v1/codex/Zgv/: Zgv");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Note/Note", array("note" => "0"));
$I->sendGET("v1/codex/Zgv/Zgv", array("zgv_code" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Zgvdoktor/Zgvdoktor");
$I->wantTo("Test API call v1/codex/Zgvdoktor/: Zgvdoktor");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Zgvdoktor/Zgvdoktor", array("zgvdoktor_code" => "0"));
$I->sendGET("v1/codex/Zgvdoktor/Zgvdoktor", array("zgvdoktor_code" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Zgvgruppe/Zgvgruppe");
$I->wantTo("Test API call v1/codex/Zgvgruppe/: Zgvgruppe");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Zgvgruppe/Zgvgruppe", array("gruppe_kurzbz" => "0"));
$I->sendGET("v1/codex/Zgvgruppe/Zgvgruppe", array("gruppe_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Zgvmaster/Zgvmaster");
$I->wantTo("Test API call v1/codex/Zgvmaster/: Zgvmaster");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Zgvmaster/Zgvmaster", array("zgvmas_code" => "0"));
$I->sendGET("v1/codex/Zgvmaster/Zgvmaster", array("zgvmas_code" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Ampel/Ampel");
$I->wantTo("Test API call v1/codex/Zweck/: Zweck");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Ampel/Ampel", array("ampel_id" => "0"));
$I->sendGET("v1/codex/Zweck/Zweck", array("zweck_code" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Archiv/Archiv");
$I->wantTo("Test API call v1/content/Ampel/: Ampel");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Archiv/Archiv", array("archiv_id" => "0"));
$I->sendGET("v1/content/Ampel/Ampel", array("ampel_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Content/Content");
$I->wantTo("Test API call v1/content/Content/: Content");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Content/Content", array("content_id" => "0"));
$I->sendGET("v1/content/Content/Content", array("content_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Contentchild/Contentchild");
$I->wantTo("Test API call v1/content/Contentchild/: Contentchild");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Contentchild/Contentchild", array("contentchild_id" => "0"));
$I->sendGET("v1/content/Contentchild/Contentchild", array("contentchild_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Contentgruppe/Contentgruppe");
$I->wantTo("Test API call v1/content/Contentgruppe/: Contentgruppe");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Contentgruppe/Contentgruppe", array("gruppe_kurzbz" => "0", "content_id" => "0"));
$I->sendGET("v1/content/Contentgruppe/Contentgruppe", array("gruppe_kurzbz" => "1", "content_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Contentlog/Contentlog");
$I->wantTo("Test API call v1/content/Contentlog/: Contentlog");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Contentlog/Contentlog", array("contentlog_id" => "0"));
$I->sendGET("v1/content/Contentlog/Contentlog", array("contentlog_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Contentsprache/Contentsprache");
$I->wantTo("Test API call v1/content/Contentsprache/: Contentsprache");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Contentsprache/Contentsprache", array("contentsprache_id" => "0"));
$I->sendGET("v1/content/Contentsprache/Contentsprache", array("contentsprache_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,11 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Dms/: Dms");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Dms/Dms", array("dms_id" => "1", "version" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Infoscreen/Infoscreen");
$I->wantTo("Test API call v1/content/Infoscreen/: Infoscreen");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Infoscreen/Infoscreen", array("infoscreen_id" => "0"));
$I->sendGET("v1/content/Infoscreen/Infoscreen", array("infoscreen_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Konto/Konto");
$I->wantTo("Test API call v1/content/News/: News");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Konto/Konto", array("buchungsnr" => "0"));
$I->sendGET("v1/content/News/News", array("news_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Template/Template");
$I->wantTo("Test API call v1/content/Template/: Template");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Template/Template", array("template_kurzbz" => "0"));
$I->sendGET("v1/content/Template/Template", array("template_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Veranstaltung/Veranstaltung");
$I->wantTo("Test API call v1/content/Veranstaltung/: Veranstaltung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Veranstaltung/Veranstaltung", array("veranstaltung_id" => "0"));
$I->sendGET("v1/content/Veranstaltung/Veranstaltung", array("veranstaltung_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/Veranstaltungskategorie/Veranstaltungskategorie");
$I->wantTo("Test API call v1/content/Veranstaltungskategorie/: Veranstaltungskategorie");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/Veranstaltungskategorie/Veranstaltungskategorie", array("veranstaltungskategorie_kurzbz" => "0"));
$I->sendGET("v1/content/Veranstaltungskategorie/Veranstaltungskategorie", array("veranstaltungskategorie_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,23 +1,20 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/system/message/MessagesByPersonID");
$I->wantTo("Test API call v1/crm/Akte/: Akte Akten AktenAccepted");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/system/message/MessagesByPersonID", array("person_id" => "1"));
$I->sendGET("v1/crm/Akte/Akte", array("akte_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/system/message/MessagesByUID", array("uid" => "mckenzie"));
$I->sendGET("v1/crm/Akte/Akten", array("person_id" => "1", "dokument_kurzbz" => "1", "stg_kz" => "1", "prestudent_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/system/message/MessagesByToken", array("token" => "token"));
$I->sendGET("v1/crm/Akte/AktenAccepted", array("person_id" => "1", "dokument_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Aufnahmeschluessel/Aufnahmeschluessel");
$I->wantTo("Test API call v1/crm/Aufnahmeschluessel/: Aufnahmeschluessel");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Aufnahmeschluessel/Aufnahmeschluessel", array("aufnahmeschluessel" => "0"));
$I->sendGET("v1/crm/Aufnahmeschluessel/Aufnahmeschluessel", array("aufnahmeschluessel" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Aufnahmetermin/Aufnahmetermin");
$I->wantTo("Test API call v1/crm/Aufnahmetermin/: Aufnahmetermin");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Aufnahmetermin/Aufnahmetermin", array("aufnahmetermin_id" => "0"));
$I->sendGET("v1/crm/Aufnahmetermin/Aufnahmetermin", array("aufnahmetermin_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Aufnahmetermintyp/Aufnahmetermintyp");
$I->wantTo("Test API call v1/crm/Aufnahmetermintyp/: Aufnahmetermintyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Aufnahmetermintyp/Aufnahmetermintyp", array("aufnahmetermintyp_kurzbz" => "0"));
$I->sendGET("v1/crm/Aufnahmetermintyp/Aufnahmetermintyp", array("aufnahmetermintyp_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,26 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Bewerbungstermine/: Bewerbungstermine ByStudiengangStudiensemester ByStudienplan Current");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Bewerbungstermine/Bewerbungstermine", array("bewerbungstermine_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/crm/Bewerbungstermine/ByStudiengangStudiensemester", array("studiengang_kz" => "1", "studiensemester_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/crm/Bewerbungstermine/ByStudienplan", array("studienplan_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/crm/Bewerbungstermine/Current", array());
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Buchungstyp/Buchungstyp");
$I->wantTo("Test API call v1/crm/Buchungstyp/: Buchungstyp");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Buchungstyp/Buchungstyp", array("buchungstyp_kurzbz" => "0"));
$I->sendGET("v1/crm/Buchungstyp/Buchungstyp", array("buchungstyp_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Dokument/Dokument");
$I->wantTo("Test API call v1/crm/Dokument/: Dokument");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Dokument/Dokument", array("dokument_kurzbz" => "0"));
$I->sendGET("v1/crm/Dokument/Dokument", array("dokument_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Dokumentprestudent/Dokumentprestudent");
$I->wantTo("Test API call v1/crm/Dokumentprestudent/: Dokumentprestudent");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Dokumentprestudent/Dokumentprestudent", array("prestudent_id" => "0", "dokument_kurzbz" => "0"));
$I->sendGET("v1/crm/Dokumentprestudent/Dokumentprestudent", array("prestudent_id" => "1", "dokument_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,16 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Dokumentstudiengang/: Dokumentstudiengang DokumentstudiengangByStudiengang_kz");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Dokumentstudiengang/Dokumentstudiengang", array("studiengang_kz" => "1", "dokument_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/crm/Dokumentstudiengang/DokumentstudiengangByStudiengang_kz", array("studiengang_kz" => "1", "onlinebewerbung" => "1", "pflicht" => "1", "nachreichbar" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Bisio/Bisio");
$I->wantTo("Test API call v1/crm/Konto/: Konto");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Bisio/Bisio", array("bisio_id" => "0"));
$I->sendGET("v1/crm/Konto/Konto", array("buchungsnr" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Preincoming/Preincoming");
$I->wantTo("Test API call v1/crm/Preincoming/: Preincoming");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Preincoming/Preincoming", array("preincoming_id" => "0"));
$I->sendGET("v1/crm/Preincoming/Preincoming", array("preincoming_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,17 +1,15 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/preinteressent Preinteressent and PreinteressentByPersonID");
$I->wantTo("Test API call v1/crm/Preinteressent/: Preinteressent PreinteressentByPersonID");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/preinteressent/Preinteressent", array("preinteressent_id" => 1));
$I->sendGET("v1/crm/Preinteressent/Preinteressent", array("preinteressent_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/crm/preinteressent/PreinteressentByPersonID", array("person_id" => 3));
$I->sendGET("v1/crm/Preinteressent/PreinteressentByPersonID", array("person_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Preinteressentstudiengang/Preinteressentstudiengang");
$I->wantTo("Test API call v1/crm/Preinteressentstudiengang/: Preinteressentstudiengang");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Preinteressentstudiengang/Preinteressentstudiengang", array("preinteressent_id" => "0", "studiengang_kz" => "0"));
$I->sendGET("v1/crm/Preinteressentstudiengang/Preinteressentstudiengang", array("preinteressent_id" => "1", "studiengang_kz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Preoutgoing/Preoutgoing");
$I->wantTo("Test API call v1/crm/Preoutgoing/: Preoutgoing");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Preoutgoing/Preoutgoing", array("preoutgoing_id" => "0"));
$I->sendGET("v1/crm/Preoutgoing/Preoutgoing", array("preoutgoing_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,23 +1,20 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/person/kontakt/ kontakt, KontaktByPersonID and KontaktByPersonIDKontaktTyp");
$I->wantTo("Test API call v1/crm/Prestudent/: Prestudent PrestudentByPersonID Specialization");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/person/kontakt/kontakt", array("kontakt_id" => 1));
$I->sendGET("v1/crm/Prestudent/Prestudent", array("prestudent_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/person/kontakt/KontaktByPersonID", array("person_id" => 3));
$I->sendGET("v1/crm/Prestudent/PrestudentByPersonID", array("person_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/person/kontakt/KontaktByPersonIDKontaktTyp", array("person_id" => 3, "kontakttyp" => "email"));
$I->sendGET("v1/crm/Prestudent/Specialization", array("prestudent_id" => "1", "titel" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,17 +1,15 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Prestudentstatus/Prestudentstatus");
$I->wantTo("Test API call v1/crm/Prestudentstatus/: Prestudentstatus LastStatus");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Prestudentstatus/Prestudentstatus", array("ausbildungssemester" => "0", "studiensemester_kurzbz" => "0", "status_kurzbz" => "0", "prestudent_id" => "0"));
$I->sendGET("v1/crm/Prestudentstatus/Prestudentstatus", array("ausbildungssemester" => "1", "studiensemester_kurzbz" => "1", "status_kurzbz" => "1", "prestudent_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/crm/Prestudentstatus/LastStatus", array("prestudent_id" => 3));
$I->sendGET("v1/crm/Prestudentstatus/LastStatus", array("prestudent_id" => "1", "studiensemester_kurzbz" => "1", "status_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -0,0 +1,21 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Reihungstest/: Reihungstest ByStudiengangStudiensemester ReihungstestByPersonID");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Reihungstest/Reihungstest", array("reihungstest_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/crm/Reihungstest/ByStudiengangStudiensemester", array("studiengang_kz" => "1", "studiensemester_kurzbz" => "1", "available" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/crm/Reihungstest/ReihungstestByPersonID", array("person_id" => "1", "available" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/RtPerson/RtPerson");
$I->wantTo("Test API call v1/crm/RtPerson/: RtPerson");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/RtPerson/RtPerson", array("rt_person_id" => "0"));
$I->sendGET("v1/crm/RtPerson/RtPerson", array("rt_person_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/system/Rolle/Rolle");
$I->wantTo("Test API call v1/crm/Status/: Status");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/system/Rolle/Rolle", array("rolle_kurzbz" => "0"));
$I->sendGET("v1/crm/Status/Status", array("status_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Statusgrund/Statusgrund");
$I->wantTo("Test API call v1/crm/Statusgrund/: Statusgrund");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Statusgrund/Statusgrund", array("statusgrund_kurzbz" => "0"));
$I->sendGET("v1/crm/Statusgrund/Statusgrund", array("statusgrund_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
@@ -1,11 +1,10 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/system/Filter/Filter");
$I->wantTo("Test API call v1/crm/Student/: Student");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/system/Filter/Filter", array("filter_id" => "0"));
$I->sendGET("v1/crm/Student/Student", array("student_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);

Some files were not shown because too many files have changed in this diff Show More