From 477f57faa97c4063573733ce18ffdba1d02e2fb1 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Sat, 21 May 2016 19:41:37 -0400 Subject: [PATCH] Bug 15878 - QA Followup * Remove debug statment * Move transcation start * Remove unused testbuilder object --- t/db_dependent/Barcodes.t | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/t/db_dependent/Barcodes.t b/t/db_dependent/Barcodes.t index eea7c42..a71b542 100755 --- a/t/db_dependent/Barcodes.t +++ b/t/db_dependent/Barcodes.t @@ -84,21 +84,15 @@ subtest 'Test generation of annual barcodes from DB values' => sub { }; -$schema->storage->txn_begin; subtest 'Test generation of hbyymmincr barcodes from DB values' => sub { + $schema->storage->txn_begin; plan tests => 5; $builder->schema->resultset( 'Issue' )->delete_all; $builder->schema->resultset( 'Item' )->delete_all; - my$barcode_branch = $builder->build({ - source => 'Branch', - branchcode => 'LETTERS', - }); - - my $branchcode_1 = "LETT"; - print "$branchcode_1\n"; + my $branchcode_1 = "LETTERS"; #NOTE: This barcode type supports only letters in the branchcode my $barcodeobj; warnings_are { $barcodeobj = C4::Barcodes->new('hbyymmincr'); } -- 2.1.4