- Removed phpci.yml file

- Removed tests/codeception/ directory
- Changed tests/codesniffer/FHComplete/ruleset.xml
- Removed tests/codesniffer/FHComplete/Sniffs
- Removed tests/codesniffer/FHComplete/tests
- Added tests/phpmd/rulesets.xml
This commit is contained in:
Paolo
2022-02-10 11:42:39 +01:00
parent 6d806a52d9
commit d9aa24cced
309 changed files with 19 additions and 11313 deletions
-127
View File
@@ -1,127 +0,0 @@
# Globally valid entries
build_settings:
ignore: # Ignores vendor and tests folders
- "vendor"
- "tests"
pgsql: # PostgreSQL connection parameters
host: "localhost;dbname=template1" # Connects to the template1 database to be able to drop database fhcomplete
user: "fhcomplete"
pass: "fhcomplete"
setup: # First!
pgsql: # Close previous connections to database -> drop database -> create database
- "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE pid <> pg_backend_pid() AND datname = 'fhcomplete';"
- "DROP DATABASE IF EXISTS fhcomplete;"
- "CREATE DATABASE fhcomplete;"
composer: # Run composer to install all the required 3rd party software
shell:
# Install addons
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Abrechnung.git %BUILD_PATH%/addons/abrechnung"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Asterisk.git %BUILD_PATH%/addons/asterisk"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Aufnahme.git %BUILD_PATH%/addons/aufnahme"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Bewerbung.git %BUILD_PATH%/addons/bewerbung"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-CaseTime.git %BUILD_PATH%/addons/casetime"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-LDAP.git %BUILD_PATH%/addons/ldap"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Lehrmittel.git %BUILD_PATH%/addons/lehrmittel"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-LV-Evaluierung.git %BUILD_PATH%/addons/lvevaluierung"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-LVInfo.git %BUILD_PATH%/addons/lvinfo"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Kompetenzen.git %BUILD_PATH%/addons/kompetenzen"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Moodle.git %BUILD_PATH%/addons/moodle"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Reports.git %BUILD_PATH%/addons/reports"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Studiengangsverwaltung.git %BUILD_PATH%/addons/studiengangsverwaltung"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-Textbausteine.git %BUILD_PATH%/addons/textbausteine"
- "git clone --quiet https://github.com/FH-Complete/FHC-AddOn-WaWi.git %BUILD_PATH%/addons/wawi"
# Copy addons configs
- "cp -R /var/www/configs/fhc/abrechnung/* %BUILD_PATH%/addons/abrechnung"
- "cp -R /var/www/configs/fhc/asterisk/* %BUILD_PATH%/addons/asterisk"
- "cp -R /var/www/configs/fhc/bewerbung/* %BUILD_PATH%/addons/bewerbung"
- "cp -R /var/www/configs/fhc/casetime/* %BUILD_PATH%/addons/casetime"
- "cp -R /var/www/configs/fhc/lehrmittel/* %BUILD_PATH%/addons/lehrmittel"
- "cp -R /var/www/configs/fhc/lvinfo/* %BUILD_PATH%/addons/lvinfo"
- "cp -R /var/www/configs/fhc/reports/* %BUILD_PATH%/addons/reports"
- "cp -R /var/www/configs/fhc/wawi/* %BUILD_PATH%/addons/wawi"
# Copy core configs and .htaccess
- "cp -R /var/www/configs/fhc/configs/* ./config"
- "cp /var/www/configs/fhc/configs/.htaccess ./cis/private/"
- "cp /var/www/configs/fhc/configs/.htaccess ./content"
- "cp /var/www/configs/fhc/configs/.htaccess ./rdf"
- "cp /var/www/configs/fhc/configs/.htaccess ./system"
- "cp /var/www/configs/fhc/configs/.htaccess ./vilesci"
# Create core directories
- "mkdir documents"
- "mkdir documents/csv_import"
- "mkdir documents/dms"
- "mkdir documents/import"
- "mkdir documents/benotungstool"
- "mkdir paabgabe"
# Copy codeigniter configs
- "mkdir ./application/config/development"
- "cp -R /var/www/configs/ci/* ./application/config/development"
# Clone extensions
- "git clone --quiet https://github.com/FH-Complete/FHC-Core-MobilityOnline.git /tmp/FHC-Core-MobilityOnline"
- "git clone --quiet https://github.com/FH-Complete/FHC-Core-Budget.git /tmp/FHC-Core-Budget"
- "git clone --quiet https://github.com/FH-Complete/FHC-Core-DSMS.git /tmp/FHC-Core-DSMS"
- "git clone --quiet https://github.com/FH-Complete/FHC-Core-Nextcloud.git /tmp/FHC-Core-Nextcloud"
# Create extensions archives
- "tar cfzP /tmp/FHC-Core-MobilityOnline.tgz /tmp/FHC-Core-MobilityOnline/"
- "tar cfzP /tmp/FHC-Core-Budget.tgz /tmp/FHC-Core-Budget/"
- "tar cfzP /tmp/FHC-Core-DSMS.tgz /tmp/FHC-Core-DSMS/"
- "tar cfzP /tmp/FHC-Core-Nextcloud.tgz /tmp/FHC-Core-Nextcloud/"
# Install extensions
#- "php index.ci.php system/extensions/CLI_Manager uploadExtension FHC-Core-MobilityOnline /tmp/FHC-Core-MobilityOnline.tgz"
#- "php index.ci.php system/extensions/CLI_Manager uploadExtension FHC-Core-Budget /tmp/FHC-Core-Budget.tgz"
#- "php index.ci.php system/extensions/CLI_Manager uploadExtension FHC-Core-DSMS /tmp/FHC-Core-DSMS.tgz"
#- "php index.ci.php system/extensions/CLI_Manager uploadExtension FHC-Core-Nextcloud /tmp/FHC-Core-Nextcloud.tgz"
# Remove temporary files
- "rm -fR /tmp/FHC-Core-MobilityOnline*"
- "rm -fR /tmp/FHC-Core-Budget*"
- "rm -fR /tmp/FHC-Core-DSMS*"
- "rm -fR /tmp/FHC-Core-Nextcloud*"
# Change files permissions
- "chmod -R 0770 *"
- "find . -type f -exec chmod 0644 {} \\;"
# Create a symlink to the current build folder
- "ln -s %BUILD_PATH% ../fhcomplete"
test: # Run tests
php_parallel_lint: # Lint cannot fail!
php_mess_detector: # Mess detector
rules:
- "unusedcode"
- "codesize"
- "design"
allow_failures: true
php_cpd: # Copy/paste detector
ignore:
- "rdf"
- "config"
- "locale"
- "application/config"
- "application/views"
# Global ignore is overwritten by the specific one
- "vendor"
- "tests"
allow_failures: true
php_code_sniffer: # Code sniffer
standard: "tests/codesniffer/FHComplete"
ignore:
- "rdf"
- "locale"
- "application/views"
allowed_warnings: -1 # Warnings are ignored for a successful build
allow_failures: true
#codeception: # Codeception
# config: "tests/codeception/"
# path: "tests/codeception/_output/"
# allow_failures: true
failure: # On failure
email: # Send an email to warn the team
default_mailto_address: systementwicklung@technikum-wien.at
complete: # Last!
pgsql: # Close previous connections to database -> drop database
- "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE pid <> pg_backend_pid() AND datname = 'fhcomplete';"
- "DROP DATABASE IF EXISTS fhcomplete;"
shell: # Remove the previously created symlink
- "rm ../fhcomplete"
-2
View File
@@ -1,2 +0,0 @@
<?php
// This is global bootstrap for autoloading
@@ -1,26 +0,0 @@
<?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 AcceptanceTester extends \Codeception\Actor
{
use _generated\AcceptanceTesterActions;
/**
* Define custom actions here
*/
}
-39
View File
@@ -1,39 +0,0 @@
<?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 ApiTester extends \Codeception\Actor
{
const WAIT = 70000; // 0.07 seconds
use _generated\ApiTesterActions;
/**
* Define custom actions here
*/
public function wait($micro_seconds = null)
{
if (!is_null($micro_seconds))
{
usleep($micro_seconds);
}
else
{
usleep(ApiTester::WAIT);
}
}
}
@@ -1,26 +0,0 @@
<?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 FunctionalTester extends \Codeception\Actor
{
use _generated\FunctionalTesterActions;
/**
* Define custom actions here
*/
}
-25
View File
@@ -1,25 +0,0 @@
<?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
*/
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -1,204 +0,0 @@
<?php //[STAMP] e88575298465f35c4ba48944693fdc61
namespace _generated;
// This class was automatically generated by build task
// You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile
use Codeception\Module\Db;
trait FunctionalTesterActions
{
/**
* @return \Codeception\Scenario
*/
abstract protected function getScenario();
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Inserts an SQL record into a database. This record will be erased after the test.
*
* ``` php
* <?php
* $I->haveInDatabase('users', array('name' => 'miles', 'email' => 'miles@davis.com'));
* ?>
* ```
*
* @param string $table
* @param array $data
*
* @return integer $id
* @see \Codeception\Module\Db::haveInDatabase()
*/
public function haveInDatabase($table, $data) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('haveInDatabase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Asserts that a row with the given column values exists.
* Provide table name and column values.
*
* ``` php
* <?php
* $I->seeInDatabase('users', array('name' => 'Davert', 'email' => 'davert@mail.com'));
* ```
* Fails if no such user found.
*
* @param string $table
* @param array $criteria
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Db::seeInDatabase()
*/
public function canSeeInDatabase($table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInDatabase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Asserts that a row with the given column values exists.
* Provide table name and column values.
*
* ``` php
* <?php
* $I->seeInDatabase('users', array('name' => 'Davert', 'email' => 'davert@mail.com'));
* ```
* Fails if no such user found.
*
* @param string $table
* @param array $criteria
* @see \Codeception\Module\Db::seeInDatabase()
*/
public function seeInDatabase($table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInDatabase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Asserts that the given number of records were found in the database.
*
* ``` php
* <?php
* $I->seeNumRecords(1, 'users', ['name' => 'davert'])
* ?>
* ```
*
* @param int $expectedNumber Expected number
* @param string $table Table name
* @param array $criteria Search criteria [Optional]
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Db::seeNumRecords()
*/
public function canSeeNumRecords($expectedNumber, $table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeNumRecords', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Asserts that the given number of records were found in the database.
*
* ``` php
* <?php
* $I->seeNumRecords(1, 'users', ['name' => 'davert'])
* ?>
* ```
*
* @param int $expectedNumber Expected number
* @param string $table Table name
* @param array $criteria Search criteria [Optional]
* @see \Codeception\Module\Db::seeNumRecords()
*/
public function seeNumRecords($expectedNumber, $table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeNumRecords', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Effect is opposite to ->seeInDatabase
*
* Asserts that there is no record with the given column values in a database.
* Provide table name and column values.
*
* ``` php
* <?php
* $I->dontSeeInDatabase('users', array('name' => 'Davert', 'email' => 'davert@mail.com'));
* ```
* Fails if such user was found.
*
* @param string $table
* @param array $criteria
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Db::dontSeeInDatabase()
*/
public function cantSeeInDatabase($table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInDatabase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Effect is opposite to ->seeInDatabase
*
* Asserts that there is no record with the given column values in a database.
* Provide table name and column values.
*
* ``` php
* <?php
* $I->dontSeeInDatabase('users', array('name' => 'Davert', 'email' => 'davert@mail.com'));
* ```
* Fails if such user was found.
*
* @param string $table
* @param array $criteria
* @see \Codeception\Module\Db::dontSeeInDatabase()
*/
public function dontSeeInDatabase($table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInDatabase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Fetches a single column value from a database.
* Provide table name, desired column and criteria.
*
* ``` php
* <?php
* $mail = $I->grabFromDatabase('users', 'email', array('name' => 'Davert'));
* ```
*
* @param string $table
* @param string $column
* @param array $criteria
*
* @return mixed
* @see \Codeception\Module\Db::grabFromDatabase()
*/
public function grabFromDatabase($table, $column, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabFromDatabase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Returns the number of rows in a database
*
* @param string $table Table name
* @param array $criteria Search criteria [Optional]
*
* @return int
* @see \Codeception\Module\Db::grabNumRecords()
*/
public function grabNumRecords($table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabNumRecords', func_get_args()));
}
}
@@ -1,204 +0,0 @@
<?php //[STAMP] e88575298465f35c4ba48944693fdc61
namespace _generated;
// This class was automatically generated by build task
// You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile
use Codeception\Module\Db;
trait UnitTesterActions
{
/**
* @return \Codeception\Scenario
*/
abstract protected function getScenario();
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Inserts an SQL record into a database. This record will be erased after the test.
*
* ``` php
* <?php
* $I->haveInDatabase('users', array('name' => 'miles', 'email' => 'miles@davis.com'));
* ?>
* ```
*
* @param string $table
* @param array $data
*
* @return integer $id
* @see \Codeception\Module\Db::haveInDatabase()
*/
public function haveInDatabase($table, $data) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('haveInDatabase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Asserts that a row with the given column values exists.
* Provide table name and column values.
*
* ``` php
* <?php
* $I->seeInDatabase('users', array('name' => 'Davert', 'email' => 'davert@mail.com'));
* ```
* Fails if no such user found.
*
* @param string $table
* @param array $criteria
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Db::seeInDatabase()
*/
public function canSeeInDatabase($table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInDatabase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Asserts that a row with the given column values exists.
* Provide table name and column values.
*
* ``` php
* <?php
* $I->seeInDatabase('users', array('name' => 'Davert', 'email' => 'davert@mail.com'));
* ```
* Fails if no such user found.
*
* @param string $table
* @param array $criteria
* @see \Codeception\Module\Db::seeInDatabase()
*/
public function seeInDatabase($table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInDatabase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Asserts that the given number of records were found in the database.
*
* ``` php
* <?php
* $I->seeNumRecords(1, 'users', ['name' => 'davert'])
* ?>
* ```
*
* @param int $expectedNumber Expected number
* @param string $table Table name
* @param array $criteria Search criteria [Optional]
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Db::seeNumRecords()
*/
public function canSeeNumRecords($expectedNumber, $table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeNumRecords', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Asserts that the given number of records were found in the database.
*
* ``` php
* <?php
* $I->seeNumRecords(1, 'users', ['name' => 'davert'])
* ?>
* ```
*
* @param int $expectedNumber Expected number
* @param string $table Table name
* @param array $criteria Search criteria [Optional]
* @see \Codeception\Module\Db::seeNumRecords()
*/
public function seeNumRecords($expectedNumber, $table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeNumRecords', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Effect is opposite to ->seeInDatabase
*
* Asserts that there is no record with the given column values in a database.
* Provide table name and column values.
*
* ``` php
* <?php
* $I->dontSeeInDatabase('users', array('name' => 'Davert', 'email' => 'davert@mail.com'));
* ```
* Fails if such user was found.
*
* @param string $table
* @param array $criteria
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Db::dontSeeInDatabase()
*/
public function cantSeeInDatabase($table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInDatabase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Effect is opposite to ->seeInDatabase
*
* Asserts that there is no record with the given column values in a database.
* Provide table name and column values.
*
* ``` php
* <?php
* $I->dontSeeInDatabase('users', array('name' => 'Davert', 'email' => 'davert@mail.com'));
* ```
* Fails if such user was found.
*
* @param string $table
* @param array $criteria
* @see \Codeception\Module\Db::dontSeeInDatabase()
*/
public function dontSeeInDatabase($table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInDatabase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Fetches a single column value from a database.
* Provide table name, desired column and criteria.
*
* ``` php
* <?php
* $mail = $I->grabFromDatabase('users', 'email', array('name' => 'Davert'));
* ```
*
* @param string $table
* @param string $column
* @param array $criteria
*
* @return mixed
* @see \Codeception\Module\Db::grabFromDatabase()
*/
public function grabFromDatabase($table, $column, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabFromDatabase', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Returns the number of rows in a database
*
* @param string $table Table name
* @param array $criteria Search criteria [Optional]
*
* @return int
* @see \Codeception\Module\Db::grabNumRecords()
*/
public function grabNumRecords($table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabNumRecords', func_get_args()));
}
}
-27
View File
@@ -1,27 +0,0 @@
actor: Tester
paths:
tests: tests
log: _output
data: _data
helpers: _support
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 1024M
modules:
enabled:
- Db:
dsn: 'pgsql:host=localhost;port=5432;dbname=fhctest'
user: 'fhcomplete'
password: 'fhcomplete'
dump: _data/dump.sql
populate: true
cleanup: false
reconnect: false
coverage:
enabled: true
include:
- application/*
exclude:
- application/cache/*
- application/logs/*
@@ -1,21 +0,0 @@
# Codeception Test Suite Configuration
# suite for acceptance tests.
# perform tests in browser using the WebDriver or PhpBrowser.
# If you need both WebDriver and PHPBrowser tests - create a separate suite.
class_name: AcceptanceTester
modules:
enabled:
- Db
- PhpBrowser:
url: 'http://admin:1q2w3@test.fhcomplete.org/build/'
config:
Db:
dsn: 'pgsql:host=localhost;port=5432;dbname=fhctest'
user: 'fhcomplete'
password: 'fhcomplete'
dump: _data/dump.sql
populate: true
cleanup: false
reconnect: false
@@ -1,6 +0,0 @@
<?php
$I = new AcceptanceTester($scenario);
$I->wantTo('CIS Startseite Testen');
//$I->amOnPage('/cis/index.html');
//$I->see('Powered by FH Complete');
?>
@@ -1,11 +0,0 @@
<?php
$I = new AcceptanceTester($scenario);
$I->wantTo('Test the Search-Feature of VileSci');
$I->amOnPage('/vilesci/personen/suche.php');
$I->lookForwardTo('Personensuche');
$I->seeElement('input[name="searchstr"]');
$I->seeElement('input[type=submit][value=Suchen]');
$I->fillField('searchstr', 'Vicenta');
$I->click('Suchen');
$I->see('McKenzie');
@@ -1,26 +0,0 @@
<?php
$I = new AcceptanceTester($scenario);
$I->wantTo('test the Startpage of VileSci');
$I->wantTo('test this over vilesci/index.php');
$I->amOnPage('/vilesci/index.php');
$I->See('This application works only with');
$I->seeElement('#frameset-vilesci');
$I->wantTo('and now over index.ci.php');
$I->amOnPage('/index.ci.php');
$I->See('This application works only with');
$I->seeElement('#frameset-vilesci');
$I->wantTo('test the top menu');
$I->amOnPage('/vilesci/top.php');
$I->seeElement('.logo');
$I->wantTo('test the left nav-frame');
$I->amOnPage('/vilesci/left.php');
$I->seeElement('.left_nav');
$I->wantTo('test the main-frame');
$I->amOnPage('/vilesci/main.php');
$I->seeElement('img');
?>
@@ -1,2 +0,0 @@
<?php
// Here you can initialize variables that will be available to your tests
@@ -1,20 +0,0 @@
class_name: ApiTester
modules:
enabled:
- Db
- REST:
# API URL
url: 'http://admin:1q2w3@test.fhcomplete.org/build/index.ci.php/api/'
# Can also be a framework module name
depends: PhpBrowser
# Limits PhpBrowser to JSON or XML
part: Json
config:
Db:
dsn: 'pgsql:host=localhost;port=5432;dbname=fhctest'
user: 'fhcomplete'
password: 'fhcomplete'
dump: _data/dump.sql
populate: true
cleanup: false
reconnect: false
@@ -1,2 +0,0 @@
<?php
// Here you can initialize variables that will be available to your tests
-178
View File
@@ -1,178 +0,0 @@
<?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";
}
}
}
}
?>
@@ -1,5 +0,0 @@
$I->sendGET("_CALL_", array(_PARAMETERS_));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,6 +0,0 @@
<?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 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1", "tag" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1", "tag" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1", "geschaeftsjahr_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Konto/: Konto");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Konto/Konto", array("konto_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1", "password" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1", "bisverwendung_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?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 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Bundesland/: All");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Bundesland/All", array());
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1", "mitarbeiter_uid" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,16 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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/codex/Gemeinde/Gemeinde", array("gemeinde_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/codex/Gemeinde/GemeindeByPlz", array("plz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,16 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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/codex/Nation/Nation", array("nation_code" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/codex/Nation/All", array("orderEnglish" => "1", "ohnesperre" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Note/: Note");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Note/Note", array("note" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,21 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/codex/Orgform/All", array());
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/codex/Orgform/OrgformLV", array());
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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/Zgv/Zgv", array("zgv_code" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/codex/Zweck/: Zweck");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/codex/Zweck/Zweck", array("zweck_code" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?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();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1", "content_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?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 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/content/News/: News");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/content/News/News", array("news_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,21 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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/crm/Akte/Akte", array("akte_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$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/crm/Akte/AktenAccepted", array("person_id" => "1", "dokument_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,26 +0,0 @@
<?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 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1", "dokument_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,16 +0,0 @@
<?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 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Konto/: Konto");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Konto/Konto", array("buchungsnr" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,16 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/crm/Preinteressent/PreinteressentByPersonID", array("person_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1", "studiengang_kz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,21 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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/crm/Prestudent/Prestudent", array("prestudent_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/crm/Prestudent/PrestudentByPersonID", array("person_id" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET("v1/crm/Prestudent/Specialization", array("prestudent_id" => "1", "titel" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,16 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "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" => "1", "studiensemester_kurzbz" => "1", "status_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,21 +0,0 @@
<?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 +0,0 @@
<?php
$I = new ApiTester($scenario);
$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" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/crm/Status/: Status");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/crm/Status/Status", array("status_kurzbz" => "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