X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2Fx%2Fexceptions.t;h=e54327bf8b3a75e8a7102c430791895dbab3bddf;hb=b9aaed24f1b5b7fbd52ecb097236fcdfe15215d0;hp=18ae115f89245a7736383a061d9aadc2abc5450a;hpb=b1e8badeab608b91ded10f5f32082430a7b7cd42;p=kivitendo-erp.git diff --git a/t/x/exceptions.t b/t/x/exceptions.t index 18ae115f8..e54327bf8 100644 --- a/t/x/exceptions.t +++ b/t/x/exceptions.t @@ -22,7 +22,7 @@ for my $error_class (@classes) { is $x->message, "test message", "$error_class(message): message works"; is "$x", "test message", "$error_class(message): stringify works"; - my $x = $error_class->new(error => "test message"); + $x = $error_class->new(error => "test message"); is $x->error, "test message", "$error_class(error): error works"; is $x->message, "test message", "$error_class(error): message works"; @@ -39,7 +39,7 @@ is $x->message, "stuff: broke", "tempalte: message works"; is "$x", "stuff: broke", "template: stringify works"; -my $x = SL::X::Inventory::Allocation->new(code => "DEADCOFFEE", message => "something went wrong"); +$x = SL::X::Inventory::Allocation->new(code => "DEADCOFFEE", message => "something went wrong"); is $x->code, "DEADCOFFEE", "extra fields work";