Bugzilla – Attachment 153945 Details for
Bug 34415
Remove Test::DBIx::Class from t/EdiTransport.t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34415: Perltidy file
Bug-34415-Perltidy-file.patch (text/plain), 2.03 KB, created by
Jonathan Druart
on 2023-07-27 09:06:45 UTC
(
hide
)
Description:
Bug 34415: Perltidy file
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-07-27 09:06:45 UTC
Size:
2.03 KB
patch
obsolete
>From d695e55afe1968da62be1e8bb9c5b6a875829fae Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 26 Jul 2023 07:32:21 +0000 >Subject: [PATCH] Bug 34415: Perltidy file > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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 f800611bafc..9172cc5f129 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.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34415
:
153906
|
153907
|
153908
|
153909
|
153943
|
153944
|
153945
|
153946
|
155174
|
155798