mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-29 01:49:27 +00:00
- 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:
@@ -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");
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
@@ -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,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
|
||||
$I = new ApiTester($scenario);
|
||||
$I->wantTo("Test API call v1/codex/Archiv/Archiv");
|
||||
$I->wantTo("Test API call v1/codex/Archiv/: Archiv");
|
||||
$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/codex/Archiv/Archiv", array("archiv_id" => "1"));
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson(["error" => 0]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
@@ -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();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+4
-6
@@ -1,18 +1,16 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+4
-6
@@ -1,18 +1,16 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
|
||||
$I = new ApiTester($scenario);
|
||||
$I->wantTo("Test API call v1/content/dms/dms");
|
||||
$I->wantTo("Test API call v1/codex/Note/: Note");
|
||||
$I->amHttpAuthenticated("admin", "1q2w3");
|
||||
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
|
||||
|
||||
$I->sendGET("v1/content/dms/Dms", array("dms_id" => 1));
|
||||
$I->sendGET("v1/codex/Note/Note", array("note" => "1"));
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson(["error" => 0]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+5
-8
@@ -1,24 +1,21 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
|
||||
$I = new ApiTester($scenario);
|
||||
$I->wantTo("Test API call v1/system/Log/Log");
|
||||
$I->wantTo("Test API call v1/codex/Zgv/: Zgv");
|
||||
$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/Zgv/Zgv", array("zgv_code" => "1"));
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson(["error" => 0]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
$I = new ApiTester($scenario);
|
||||
$I->wantTo("Test API call v1/content/Ampel/: Ampel");
|
||||
$I->amHttpAuthenticated("admin", "1q2w3");
|
||||
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
|
||||
$I->sendGET("v1/content/Ampel/Ampel", array("ampel_id" => "1"));
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson(["error" => 0]);
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
|
||||
$I = new ApiTester($scenario);
|
||||
$I->wantTo("Test API call v1/education/abgabe/Abgabe");
|
||||
$I->wantTo("Test API call v1/content/Dms/: Dms");
|
||||
$I->amHttpAuthenticated("admin", "1q2w3");
|
||||
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
|
||||
|
||||
$I->sendGET("v1/education/abgabe/Abgabe", array("abgabe_id" => "0"));
|
||||
$I->sendGET("v1/content/Dms/Dms", array("dms_id" => "1", "version" => "1"));
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson(["error" => 0]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+5
-8
@@ -1,24 +1,21 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
@@ -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();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
@@ -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();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+4
-6
@@ -1,18 +1,16 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+5
-8
@@ -1,24 +1,21 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+4
-6
@@ -1,18 +1,16 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
@@ -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();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?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]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
$I = new ApiTester($scenario);
|
||||
$I->wantTo('Test the HTTP digest autentication when calling an API');
|
||||
$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/crm/Dokumentstudiengang/Dokumentstudiengang");
|
||||
$I->amHttpAuthenticated("admin", "1q2w3");
|
||||
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
|
||||
|
||||
$I->sendGET("v1/crm/Dokumentstudiengang/Dokumentstudiengang", array("studiengang_kz" => "0", "dokument_kurzbz" => "0", "studiengang_kz" => "0", "onlinebewerbung" => "0", "pflicht" => "0"));
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson(["error" => 0]);
|
||||
$I->wait();
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
$I = new ApiTester($scenario);
|
||||
$I->wantTo("Test API call v1/education/Abgabe/: Abgabe");
|
||||
$I->amHttpAuthenticated("admin", "1q2w3");
|
||||
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
|
||||
$I->sendGET("v1/education/Abgabe/Abgabe", array("abgabe_id" => "1"));
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson(["error" => 0]);
|
||||
$I->wait();
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
$I = new ApiTester($scenario);
|
||||
$I->wantTo("Test API call v1/education/Abschlussbeurteilung/: Abschlussbeurteilung");
|
||||
$I->amHttpAuthenticated("admin", "1q2w3");
|
||||
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
|
||||
$I->sendGET("v1/education/Abschlussbeurteilung/Abschlussbeurteilung", array("abschlussbeurteilung_kurzbz" => "1"));
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson(["error" => 0]);
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
|
||||
$I = new ApiTester($scenario);
|
||||
$I->wantTo("Test API call v1/education/abschlusspruefung/Abschlusspruefung");
|
||||
$I->wantTo("Test API call v1/education/Abschlusspruefung/: Abschlusspruefung");
|
||||
$I->amHttpAuthenticated("admin", "1q2w3");
|
||||
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
|
||||
|
||||
$I->sendGET("v1/education/abschlusspruefung/Abschlusspruefung", array("abschlusspruefung_id" => "0"));
|
||||
$I->sendGET("v1/education/Abschlusspruefung/Abschlusspruefung", array("abschlusspruefung_id" => "1"));
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson(["error" => 0]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
+3
-4
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
|
||||
$I = new ApiTester($scenario);
|
||||
$I->wantTo("Test API call v1/education/anwesenheit/Anwesenheit");
|
||||
$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/anwesenheit/Anwesenheit", array("anwesenheit_id" => "0"));
|
||||
$I->sendGET("v1/education/Anrechnung/Anrechnung", array("anrechnung_id" => "1"));
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson(["error" => 0]);
|
||||
$I->wait();
|
||||
$I->wait();
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
$I = new ApiTester($scenario);
|
||||
$I->wantTo("Test API call v1/education/Anwesenheit/: Anwesenheit");
|
||||
$I->amHttpAuthenticated("admin", "1q2w3");
|
||||
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
|
||||
$I->sendGET("v1/education/Anwesenheit/Anwesenheit", array("anwesenheit_id" => "1"));
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson(["error" => 0]);
|
||||
$I->wait();
|
||||
@@ -0,0 +1,11 @@
|
||||
<?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" => "1"));
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseContainsJson(["error" => 0]);
|
||||
$I->wait();
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user