Bug 10306: (QA follow-up) Correct a TestBuilder call
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 24 Aug 2017 10:23:29 +0000 (12:23 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Dec 2017 17:44:15 +0000 (14:44 -0300)
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 <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Biblio/TransformKohaToMarc.t

index 978861f..2222d6f 100644 (file)
@@ -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" );