X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=t%2Fobject.t;h=d3e766d26d5d402cc665cdba9540c88a88da877a;hb=22c06c7b833137dc25dab1942f161fde5bc0d9c3;hp=ebf039fc0895ebd0e2402e98f46ad7de01ee7754;hpb=00078cf200c23f392322f4fdc29e4f44ddf73f41;p=chaz%2Fp5-File-KDBX diff --git a/t/object.t b/t/object.t index ebf039f..d3e766d 100644 --- a/t/object.t +++ b/t/object.t @@ -44,11 +44,11 @@ subtest 'Cloning' => sub { $copy = $entry->clone(reference_username => 1); my $ref = sprintf('{REF:U@I:%s}', format_uuid($entry->uuid)); is $copy->username, $ref, 'Copy has username reference'; - is $copy->expanded_username, $ref, 'Entry copy does not expand username because entry is not in database'; + is $copy->expand_username, $ref, 'Entry copy does not expand username because entry is not in database'; my $group = $kdbx->add_group(label => 'Passwords'); $group->add_entry($entry); - is $copy->expanded_username, $entry->username, + is $copy->expand_username, $entry->username, 'Entry in database and its copy with username ref have same expanded username'; $copy = $entry->clone;