From 829aa1afd10683cb096750909f96b8f443515c84 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 24 Aug 2017 12:23:29 +0200 Subject: [PATCH] Bug 10306: [QA Follow-up] Correct a TestBuilder call Content-Type: text/plain; charset=utf-8 In order to create a new framework, MarcSubfieldStructure was used as source. This works since that table contains a FK for frameworkcode. But obviously, we should use BiblioFramework as source. Signed-off-by: Marcel de Rooy --- t/db_dependent/Biblio/TransformKohaToMarc.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Biblio/TransformKohaToMarc.t b/t/db_dependent/Biblio/TransformKohaToMarc.t index 978861f..2222d6f 100644 --- a/t/db_dependent/Biblio/TransformKohaToMarc.t +++ b/t/db_dependent/Biblio/TransformKohaToMarc.t @@ -91,7 +91,7 @@ subtest "Working with control fields in another framework" => sub { subtest "Add test for no_split option" => sub { plan tests => 4; - my $fwc = t::lib::TestBuilder->new->build({ source => 'MarcSubfieldStructure' })->{frameworkcode}; + my $fwc = t::lib::TestBuilder->new->build({ source => 'BiblioFramework' })->{frameworkcode}; Koha::MarcSubfieldStructure->new({ frameworkcode => $fwc, tagfield => '952', tagsubfield => 'a', kohafield => 'items.fld1' })->store; Koha::MarcSubfieldStructure->new({ frameworkcode => $fwc, tagfield => '952', tagsubfield => 'b', kohafield => 'items.fld1' })->store; Koha::Caches->get_instance->clear_from_cache( "MarcSubfieldStructure-$fwc" ); -- 2.1.4