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
33 lines
No EOL
1.5 KiB
PHP
33 lines
No EOL
1.5 KiB
PHP
<?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());
|
|
}
|
|
}
|
|
?>
|