From 14c7c83bc898810e47e30888e2b8bdccaf2db7a6 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 11 Mar 2020 12:43:20 +0100 Subject: [PATCH] Tests: Anpassung an Mandantenkonf. Adress-Feld in Bestandteile aufgeteilt --- t/structure/instance_conf_method_names.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); } } -- 2.20.1