Bug 18539: remove occurrence in ReNewSubscription.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 15 Jun 2017 18:46:17 +0000 (15:46 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 15 Jun 2017 19:02:39 +0000 (16:02 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Serials/ReNewSubscription.t

index 43cc4e8..a214a97 100644 (file)
@@ -85,9 +85,9 @@ my $subscriptionhistory = $builder->build({
 
 # Renew the subscription and check that enddate has not been set
 ReNewSubscription($subscription->{subscriptionid},'',"2016-01-01",'','',12,'');
-my @history = Koha::Subscription::Histories->find($subscription->{subscriptionid});
+my $history = Koha::Subscription::Histories->find($subscription->{subscriptionid});
 
-is ( $history[0]->histenddate(), undef, 'subscription history not empty after renewal');
+is ( $history->histenddate(), undef, 'subscription history not empty after renewal');
 
 # End of tests