]> git.koha-community.org Git - koha.git/commit
Bug 23463: Fix XSLT.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 6 Mar 2020 09:40:29 +0000 (10:40 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 23 Mar 2020 09:26:34 +0000 (09:26 +0000)
commit34cca6a775abed84c2978b9ebd38bac56ae6a82a
treed2fe026d1d2897d5f21a67119272bc17ca22d61c
parent62852241430b9444acd600498fc51912f36a90e7
Bug 23463: Fix XSLT.t

From commit bf49eecdd87e2b29760226281ab1afc0a185c7f0
     Bug 23463: Replace AddItem calls with Koha::Item->store

in build_sample_item:
-    my $itype = delete $args->{itype}
-      || $self->build_object( { class => 'Koha::ItemTypes' } )->itemtype;
+    # If itype is not passed it will be picked from the biblio (see Koha::Item->store)

So before we generated a new itemtype if not passed, now we pick the one from biblioitem->itemtype.

For this specific test we need to make sure they are different.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/XSLT.t