Bug 39438: (follow-up) Remove agreement_id from periods before comparing to result

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Matt Blenkinsop 2026-02-02 09:29:27 +00:00 committed by Lucas Gass
parent 849f67988f
commit ca3c191d08
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ subtest 'periods' => sub {
];
$agreement->periods($periods);
$periods =
[ map { delete $_->{agreement_id}; $_ } @{$periods} ];
my $retrieved_periods = $agreement->periods;
is( ref($retrieved_periods), 'Koha::ERM::Agreement::Periods' );