Revision c51a1ebc
Von Sven Schöling vor etwa 2 Jahren hinzugefügt
t/db/price_rule.t | ||
---|---|---|
use Support::TestSetup;
|
||
use Test::Exception;
|
||
|
||
use SL::Controller::CustomVariableConfig;
|
||
|
||
use SL::Dev::ALL qw(:ALL);
|
||
use SL::DB::PriceRule;
|
||
use SL::DB::Project;
|
||
... | ... | |
|
||
}
|
||
|
||
|
||
# structural test: check whether the registered CVar types in SL::DB::Manager::PriceRuleItem have all the possible types of SL::Controller::CustomVariableConfigs
|
||
for (@SL::Controller::CustomVariableConfig::types) {
|
||
ok(exists $SL::DB::Manager::PriceRuleItem::price_rule_type_by_cvar_type{$_}, "PriceRuleItem has cvar config type $_ registered");
|
||
}
|
||
|
||
# k, now for a more broad test:
|
||
#
|
Auch abrufbar als: Unified diff
PriceRules: test um unterstützte CVar Typen mit der vollen liste abzugleichen
Damit sollten wirre Fehler beim hinzufügen von Artikeln nicht mehr
passieren.