Bug 17314: Make TestBuilder set good defaults for Suggestions
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Apr 2021 17:41:08 +0000 (14:41 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 28 Oct 2021 15:32:34 +0000 (17:32 +0200)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/lib/TestBuilder.pm

index e8b0dbf..aad6704 100644 (file)
@@ -595,6 +595,10 @@ sub _gen_default_values {
         BorrowerAttributeType => {
             mandatory => 0,
         },
+        Suggestion => {
+            suggesteddate => dt_from_string()->ymd,
+            STATUS        => 'ASKED'
+        },
     };
 }