From fd2e3815f24b8588c0c17f33dc91cb0e28adcea7 Mon Sep 17 00:00:00 2001 From: Baptiste Wojtkowski Date: Thu, 11 Jul 2024 14:55:18 +0200 Subject: [PATCH] Bug 18086: Add categories to the db in tests See https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18086#c27 for more context : This addresses the first point of this comment. Due to the constraint applied to categories, it is necessary that categories exist in db so I create them --- t/db_dependent/Overdues.t | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/t/db_dependent/Overdues.t b/t/db_dependent/Overdues.t index de48746..fee2505 100755 --- a/t/db_dependent/Overdues.t +++ b/t/db_dependent/Overdues.t @@ -47,6 +47,19 @@ $builder->build({ } }); +$builder->build({ + source => 'Category', + value => { + categorycode => 'PT' + } +}); + +$builder->build({ + source => 'Category', + value => { + categorycode => 'YA' + } +}); $dbh->do(q| -- 2.43.0