From 6af242e752460466d8b1ab2ba0bf215d5478b07e Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 14 Oct 2025 11:22:31 +0100 Subject: [PATCH] Bug 38489: (follow-up) Update bug 40587 tests We pushed bug 40587 since this bug Passed QA. It introduces a new test using the older construct, so this patch updates that test to add the new construct by building a File::Transport. --- t/db_dependent/Koha/EDI.t | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/t/db_dependent/Koha/EDI.t b/t/db_dependent/Koha/EDI.t index c58d7e94ce6..a953aafc795 100755 --- a/t/db_dependent/Koha/EDI.t +++ b/t/db_dependent/Koha/EDI.t @@ -242,16 +242,29 @@ subtest 'process_quote' => sub { $schema->storage->txn_begin; + # Create file transport for local testing + my $file_transport = $builder->build( + { + source => 'FileTransport', + value => { + name => 'Test Local Transport', + transport => 'local', + download_directory => $dirname, + upload_directory => $dirname, + } + } + ); + my $account = $builder->build( { source => 'VendorEdiAccount', value => { - description => 'multi-message test vendor', - transport => 'FILE', - plugin => '', - san => $test_san, - orders_enabled => 1, - auto_orders => 1, + description => 'multi-message test vendor', + file_transport_id => $file_transport->{file_transport_id}, + plugin => '', + san => $test_san, + orders_enabled => 1, + auto_orders => 1, } } ); -- 2.51.0