X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=t%2Fstructure%2Finstance_conf_method_names.t;fp=t%2Fstructure%2Finstance_conf_method_names.t;h=b25232198cabe580f6c589f16620c7fff20de5c5;hp=e442fa6f38cb669d05e56179648f6784ad0e1d19;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/t/structure/instance_conf_method_names.t b/t/structure/instance_conf_method_names.t index e442fa6f3..b25232198 100755 --- a/t/structure/instance_conf_method_names.t +++ b/t/structure/instance_conf_method_names.t @@ -7,6 +7,7 @@ use File::Slurp; use Test::More; my %default_columns; +my %compatibility_functions = map { ($_ => 1) } qw(address); sub read_default_columns { my $content = read_file('SL/DB/MetaSetup/Default.pm'); @@ -23,7 +24,7 @@ sub test_file_content { my $content = read_file($file); while ($content =~ m{(?:INSTANCE_CONF\.|\$(?:main)?::instance_conf->)get_([a-z0-9_]+)}gi) { - ok($default_columns{$1}, "'get_${1}' is a valid method call on \$::instance_conf in $file"); + ok($default_columns{$1} || $compatibility_functions{$1}, "'get_${1}' is a valid method call on \$::instance_conf in $file"); } }