From f669ca7108b1bdb7eecece0a53c60ba92fcc5d78 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 26 Jul 2023 07:32:21 +0000 Subject: [PATCH] Bug 34415: Perltidy file Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- t/db_dependent/Koha/Edifact/Transport.t | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/t/db_dependent/Koha/Edifact/Transport.t b/t/db_dependent/Koha/Edifact/Transport.t index f800611baf..9172cc5f12 100755 --- a/t/db_dependent/Koha/Edifact/Transport.t +++ b/t/db_dependent/Koha/Edifact/Transport.t @@ -9,17 +9,25 @@ use t::lib::TestBuilder; use Koha::Database; -my $schema = Koha::Database->new->schema; +my $schema = Koha::Database->new->schema; my $builder = t::lib::TestBuilder->new; $schema->storage->txn_begin; -my $account = $builder->build({ source => 'VendorEdiAccount', value => { - description => 'test vendor', transport => 'FILE', -}}); -$builder->build({ source => 'EdifactMessage', value => { - message_type => 'TEST', filename => 'duplicate', raw_msg => 'message_contents' -}}); +my $account = $builder->build( + { + source => 'VendorEdiAccount', + value => { + description => 'test vendor', transport => 'FILE', + } + } +); +$builder->build( + { + source => 'EdifactMessage', + value => { message_type => 'TEST', filename => 'duplicate', raw_msg => 'message_contents' } + } +); my $filename = 'QUOTES_413514.CEQ'; @@ -41,7 +49,8 @@ my $cnt = $schema->resultset('EdifactMessage')->count(); is( $cnt, 2, 'unique message name ingested' ); # try a repeat ingest -warning_like {$trans->ingest( $mhash, $filename ) } qr/skipping ingest of QUOTES_413514.CEQ/, 'Warning on repeated ingest'; +warning_like { $trans->ingest( $mhash, $filename ) } qr/skipping ingest of QUOTES_413514.CEQ/, + 'Warning on repeated ingest'; my $cnt2 = $schema->resultset('EdifactMessage')->count(); -- 2.30.2