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:
parent
849f67988f
commit
ca3c191d08
|
|
@ -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' );
|
||||
|
|
|
|||
Loading…
Reference in New Issue