Bug 15028: Make t/db_dependent/Letters.t set the numbering pattern it needs
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 19 Oct 2015 13:42:50 +0000 (14:42 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 19 Oct 2015 14:52:10 +0000 (11:52 -0300)
On some jenkins DBs, this pattern is "No.{X}" instead of "No. {X}" and
the test fails ("Serial notification text constructed successfully").

Tests should always create their own data.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/Letters.t

index 1a21d31..abeeb8b 100644 (file)
@@ -401,6 +401,7 @@ use C4::Serials;
 
 my $notes = 'notes';
 my $internalnotes = 'intnotes';
+$dbh->do(q|UPDATE subscription_numberpatterns SET numberingmethod='No. {X}' WHERE id=1|);
 my $subscriptionid = NewSubscription(
      undef,      "",     undef, undef, undef, $biblionumber,
     '2013-01-01', 1, undef, undef,  undef,