docs: add docs
All checks were successful
CI / Get Changed Files (pull_request) Successful in 30s
Pull Request Labeler / labeler (pull_request_target) Successful in 15s
CI / Backend Tests (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 29s
CI / eslint (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m42s
All checks were successful
CI / Get Changed Files (pull_request) Successful in 30s
Pull Request Labeler / labeler (pull_request_target) Successful in 15s
CI / Backend Tests (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 29s
CI / eslint (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m42s
This commit is contained in:
parent
56763952c0
commit
9cb813bf41
80 changed files with 4490 additions and 0 deletions
33
projektdokumentation/Listings/tests.php
Normal file
33
projektdokumentation/Listings/tests.php
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
include(dirname(__FILE__).'/../bootstrap/Propel.php');
|
||||
|
||||
$t = new lime_test(13);
|
||||
|
||||
$t->comment('Empty Information');
|
||||
$emptyComparedInformation = new ComparedNaturalModuleInformation(array());
|
||||
$t->is($emptyComparedInformation->getCatalogSign(), ComparedNaturalModuleInformation::EMPTY_SIGN, 'Has no catalog sign');
|
||||
$t->is($emptyComparedInformation->getSourceSign(), ComparedNaturalModuleInformation::SIGN_CREATE, 'Source has to be created');
|
||||
|
||||
$t->comment('Perfect Module');
|
||||
$criteria = new Criteria();
|
||||
$criteria->add(NaturalmodulenamePeer::NAME, 'SMTAB');
|
||||
$moduleName = NaturalmodulenamePeer::doSelectOne($criteria);
|
||||
$t->is($moduleName->getName(), 'SMTAB', 'Right modulename selected');
|
||||
$comparedInformation = $moduleName->loadNaturalModuleInformation();
|
||||
$t->is($comparedInformation->getSourceSign(), ComparedNaturalModuleInformation::SIGN_OK, 'Source sign shines global');
|
||||
$t->is($comparedInformation->getCatalogSign(), ComparedNaturalModuleInformation::SIGN_OK, 'Catalog sign shines global');
|
||||
$infos = $comparedInformation->getNaturalModuleInformations();
|
||||
foreach($infos as $info)
|
||||
{
|
||||
$env = $info->getEnvironmentName();
|
||||
$t->is($info->getSourceSign(), ComparedNaturalModuleInformation::SIGN_OK, 'Source sign shines at ' . $env);
|
||||
if($env != 'SVNENTW')
|
||||
{
|
||||
$t->is($info->getCatalogSign(), ComparedNaturalModuleInformation::SIGN_OK, 'Catalog sign shines at ' . $info->getEnvironmentName());
|
||||
}
|
||||
else
|
||||
{
|
||||
$t->is($info->getCatalogSign(), ComparedNaturalModuleInformation::EMPTY_SIGN, 'Catalog sign is empty at ' . $info->getEnvironmentName());
|
||||
}
|
||||
}
|
||||
?>
|
Reference in a new issue