X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2Fhelper%2Fattr.t;h=5d6238ed9584c066c1b7f72db5a442dad660913c;hb=fc762fdc0aa43e80fa0ccb22f123983961c1c03a;hp=3fc0607d56fd91c1c2d20df3ca05361d40328e29;hpb=6b378ca7ca0e5fc0933ea90fc66a45d7440b08f7;p=kivitendo-erp.git diff --git a/t/helper/attr.t b/t/helper/attr.t index 3fc0607d5..5d6238ed9 100644 --- a/t/helper/attr.t +++ b/t/helper/attr.t @@ -1,4 +1,4 @@ -use Test::More tests => 29; +use Test::More tests => 32; use lib 't'; @@ -50,3 +50,13 @@ $i->amount(12); $i->netamount(10.34); is($i->taxamount_as_number, '1,66'); +$o->closed(1); +is $o->closed_as_bool_yn, 'Ja', 'bool 1'; +$o->closed(0); +is $o->closed_as_bool_yn, 'Nein', 'bool 2'; + +# undef test: this only works for columns without default, rose will set +# defaults according to the database +$i->taxincluded(undef); +is $i->taxincluded_as_bool_yn, '', 'bool 3'; +